MorphogenDocs
API

Delete video

DELETE /v1/videos/{id}: cancel a job or delete a finished file.

DELETE/v1/videos/{id}

The action depends on the job status:

StatusWhat happens
queuedthe job is cancelled and no money is charged
in_progress409 video_cancel_unsupported: the provider cannot cancel a job it has already accepted
completedthe file is deleted

A deleted file cannot be restored.

Headers

HeaderValue
AuthorizationBearer <key>. Required. x-api-key: <key> is accepted instead

Path parameters

idstringrequired

The job identifier, like video_….

Request example

curl -X DELETE https://api.morphogen.ru/v1/videos/video_7f3a91c2 \
  -H "Authorization: Bearer $MORPHOGEN_API_KEY"

Response example

{
  "id": "video_7f3a91c2",
  "object": "video.deleted",
  "deleted": true
}

Errors

401invalid_api_keyThe key is not found, disabled or expired.
404video_not_foundThere is no such job, or it belongs to another organization.
409video_cancel_unsupportedThe job is already with the provider and cannot be cancelled. Wait for it to finish.

Other codes: Errors.

On this page