Media
Rename a file or set its alt text
PATCH
https://traceeai.com/api/v1/media/{media_id}CLI:tracee media describe·MCP:mediaaction describe
Authorizations
AuthorizationstringheaderrequiredBearer <key>: a personal key (tracee loginor Settings → Personal keys), a workspace key, or an MCP client's OAuth token. See Authentication.
Headers
Tracee-WorkspacestringFor a personal key or OAuth token that reaches several workspaces: the workspace id to act on. Workspace keys don't need it.
uuid
Path parameters
media_idstringrequiredThe file to change. From GET /api/v1/media/library (or the media_id POST /api/v1/media/from-url / generate_image returns)
uuid
Body
application/json
namestringThe file's new name
up to 120 characters
alt_textstringThe alt text
up to 1,000 characters
Response
- 200Done.
The action's result, exactly as the MCP tool returns it to agents. A
nextfield, when present, names the endpoint that follows up.