v48

latestOpenAPI 3.0.0raw.githubusercontent.com2025-12-0297180624.8 KB
File System

Write box file

Creates or overwrites a file. Creates necessary directories in the path if they don't exist. If the target path already exists, the write will fail.

post/boxes/{boxId}/fs/write

Path parameters

boxIdstring required
Example:c9bdc193-b54b-4ddb-a035-5ac0c598d32d

Box ID

Response

Write file

type'file' required

File type indicator

namestring required

Name of the file

pathstring required

Full path to the file in the box

sizestring required

Size of the file

modestring required

File metadata

lastModifiedstring date-time required

Last modified time of the file

Example response

{
  "name": "example.txt",
  "path": "/path/to/example.txt",
  "size": "10MB",
  "mode": "755",
  "lastModified": "2021-01-01T00:00:00Z"
}