Files
Rename, move, or restore a file
Discriminated payload: { name } to rename, { parentFolderId } to move (pass null for root, must be in the same surface), { restore: true } to un-archive a soft-deleted file. Rename keeps blobKey stable so deep-links never break. Restore + name in the same body is rejected.
patch/api/workspaces/{slug}/files/{fileId}
Request
- Base URLhttps://trydock.ai
- AuthHTTP bearer
Path parameters
slugstring required
fileIdstring required
Request body
Response
Updated file
Example response
{
"id": "cmpfile_…",
"name": "hero.png",
"mimeType": "image/png"
}Changes
No recorded changes to this operation across all 2 revisions of this API.