Files

Update file metadata (starred · description · tags)

Each call accepts any subset of the three keys. Tags are normalised server-side: lowercased, trimmed, de-duplicated, empties dropped. Description capped at 2 000 chars; empty string clears. Max 16 tags × 32 chars each.

patch/api/workspaces/{slug}/files/{fileId}/metadata

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required
fileIdstring required

Request body

starredboolean
descriptionstring nullable
tagsstring[]

Response

Updated file

oktrue required

Example response

{
  "file": {
    "id": "cmpfile_…",
    "name": "hero.png",
    "mimeType": "image/png"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.