Upload a file or a new version of it
Upload a file of up to 5 MB. Give text in content or binary data in contentBase64 (one of them is required). A new file goes to the General folder unless you give a folderId. To upload a new version of a file, pass its fileId. Basement then replaces only the content and ignores name, kind, tags and folderId. To change only a part of a text file, use edit_file. Requires write access.
Authentication
A Basement key (bsmt_...), from Agents, Connect in the app.
Request
Binary content, base64-encoded
MIME type (default text/plain for content, application/octet-stream for contentBase64)
File kind (default asset)
Optional folder for a new file, from list_folders. You must have write access to it
Response
The new file's ID (when a file was created)
The file's new version (when a file was replaced)