Cancel a queued or running export or frame job
const url = 'http://localhost:8300/v1/studio/media-jobs/example/cancel';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/media-jobs/example/cancel \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'The runner stops ffmpeg (SIGTERM, 10 s, SIGKILL), removes its temp files and reports cancelled. If the env’s hosts key is gone or older than 60 s, studio marks it cancelled itself. 409 job already ended. Answers the job as it is now.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Media job UUID (malformed = 404)
Responses
Section titled “Responses”The job
object
Export: the sequence
Export: the revision exported
Frame: the video take
Export: what was planned (copy = picture stream copy); once it ended, what the runner did (copy can fall back to conform)
Export: why the runner fell back to conform; null otherwise
Succeeded: the take it made (an export: a video take, source export; a frame: an image take, source frame)
Example
{ "kind": "export", "status": "queued", "mode": "copy", "failure": { "class": "input" }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}