# FilesWriteFileRequest


[API catalog](/reference/api/) · [Docker Sandboxes overview](/reference/api/sandboxes/latest/) · [Product manual](https://docs.docker.com/ai/sandboxes-api/) · [OpenAPI specification](/reference/api/sandboxes/api.yaml)

API version: v1


> This API is experimental. Features, interfaces,
> and behavior may change.




Schema constraints and annotations:

```json
{
  "additionalProperties": false,
  "description": "WriteFileRequest replaces one file.",
  "properties": {
    "data": {
      "description": "data is the complete new content; empty writes an empty file.",
      "format": "byte",
      "type": "string"
    },
    "header": {
      "$ref": "#/components/schemas/FileHeader",
      "description": "header names the path and mode, as an Upload header does."
    }
  },
  "required": [
    "header"
  ],
  "title": "WriteFileRequest",
  "type": "object"
}
```



