batches_upload
Obtain an upload reservation or reuse a ready video.
REST · POST /api/v1/operations/batches_upload · MCP · batches_upload
Required scope · media. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.
Example request body
{
"batchId": "99ae140f-7526-4e8a-89c2-c6d0d103010d",
"itemId": "video-01"
}
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": {
"batchId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"itemId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"batchId",
"itemId"
],
"additionalProperties": false
}
JSON Schema · Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"mediaId": {
"type": "string"
},
"state": {
"type": "string"
},
"uploadUrl": {
"type": "string"
}
},
"required": [
"mediaId",
"state"
],
"additionalProperties": {}
}