Files
Replace file bytes (keep id, comments, share links)
Changed onSame file id, same comments + share tokens + deep-link URL; new blobKey + new sha256 under the hood. The new bytes must be in the same MIME category as the previous version (image → image, video → video, etc.); cross-category swaps reject 400.
post/api/workspaces/{slug}/files/{fileId}/versions
Request
- Base URLhttps://trydock.ai
- AuthHTTP bearer
Path parameters
slugstring required
fileIdstring required
Request body multipart/form-data
Response
Updated file row
Example response
{
"id": "cmpfile_…",
"name": "hero.png",
"mimeType": "image/png"
}Changes
- info
endpoint added
- info