Mark an upload complete
PATCH
/api/cli/media/uploadsAuthorization
AuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
or
AuthorizationBearer token (ba_mcp_access_...) · headerrequiredThe OAuth access token the hosted MCP server issues (brainy:read for GET routes, brainy:write for everything else). One login serves MCP, the CLI and the desktop app. A token without the needed scope gets 403 Insufficient scope.
Request body
requiredapplication/jsonasset_idstring<uuid>requiredResponses
200
OK
idstring<uuid>public_urlstring<uri>media_typestringmime_typestringbytesintegermetadataobject401
Missing, invalid, expired, or revoked API key
errorstringrequiredcodestring409
MEDIA_UPLOAD_CONFLICT
errorstringrequiredcodestring