media_begin
Reserve a media ID and obtain a temporary binary upload URL.
REST · POST /api/v1/operations/media_begin · MCP · media_begin
Required scope · media. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.
Example request body
{
"projectId": "PROJECT_ID",
"name": "Atlas"
}
REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.
For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.
JSON Schema · Input
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 140
}
},
"required": [
"projectId",
"name"
],
"additionalProperties": false
}
JSON Schema · Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"uploadUrl": {
"type": "string"
}
},
"required": [
"id",
"uploadUrl"
],
"additionalProperties": {}
}