The CancelJob API cancels transcoding tasks. The API has the following restrictions:

  • Only tasks in “Submitted” state can be canceled.
  • We recommend that you first call the UpdatePipeline API (UpdatePipeline) to set the MPS queue status to Paused to stop task scheduling, and then call this API to cancel the tasks. After canceling the tasks, recover the MPS queue status to Active. In this way, tasks in the MPS queue can be scheduled and executed.

Request parameters

Parameters Type Required or not Description
Action String Yes API of the action, system required parameter. Value: CancelJob
JobId String Yes Task ID.

Response parameters

Parameter Type Description
JobId String Task ID


Request example<Public parameters>

Response example

        "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
        "JobId": "88c6ca184c0e47098a5b665e2a126797"