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.
Enter your API Key in the format: Bearer
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Request parameters for writing content to a file
Target path in the box. If the path does not start with '/', the file will be written relative to the working directory. Creates necessary directories in the path if they don't exist. If the target path already exists, the write will fail.
"/home/user/documents/output.txt"
Content of the file (Max size: 512MB)
"Hello, World!\nThis is file content."
Working directory. If not provided, the file will be read from the box.config.workingDir directory.
"/home/user/documents"
Write file
File system file representation
File type indicator
file Name of the file
"example.txt"
Full path to the file in the box
"/path/to/example.txt"
Size of the file
"10MB"
File metadata
"755"
Last modified time of the file
"2021-01-01T00:00:00Z"