Upload a file or create a directory
POST/api/v1/files
Stores the request body as a new file at path, or with directory=true creates an empty directory there (send no body). Returns an empty object.
Missing parent directories are created. The upload is written to a temporary file first and renamed when complete, so a failed upload leaves no partial file. Large files can be sent in pieces with chunk/chunks; each chunk except the last is appended to the temporary file, and the final chunk renames it into place. An existing file is only replaced when overwrite is set; an existing directory always returns 409. File uploads by a signed-in user are added to their recent files and logged as created or updated activity.
Signed-in users may write to their home, group folders where they are owner or editor, and writable shares they receive; without a session only writable public link or email shares are accepted.
A password-protected share returns 423 until unlocked.
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 423
- 424
Created. Empty object.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.