On this page

CancelUploadTask

POST

https://cloud-player-api.zego.im/

You can cancel an upload task through this API.

Note
  • This API can only cancel tasks that are waiting, and is not applicable to tasks that have already started or ended.
  • Please check the cancellation result through the Callback or Describe upload tasks API.
Note
Call frequency limit: 20 times/second

Request

Query Parameters

    Action stringrequired

    Possible values: [CancelUploadTask]

    API prototype parameter

    https://cloud-player-api.zego.im?Action=CancelUploadTask

    AppId uint32required

    💡Common parameter. Application Id, a unique user credential assigned by ZEGOCLOUD. Can be obtained from ZEGOCLOUD Console.

    SignatureNonce stringrequired

    💡Common parameter. 16-digit hexadecimal random string (hex encoding of 8-byte random number). For the generation algorithm, please refer to Signature Example.

    Timestamp int64required

    💡Common parameter. Current Unix timestamp, unit is seconds. For the generation algorithm, please refer to Signature Example, a maximum error of 10 minutes is allowed.

    SignatureVersion stringrequired

    Possible values: [2.0]

    Default value: 2.0

    💡Common parameter. Signature version number.

    Signature stringrequired

    💡Common parameter. Signature, used to verify the legitimacy of the request. Please refer to Signature Mechanism for generation.

Body

required
    UploadTaskId stringrequired

    Upload task ID, the unique identifier of the upload task. After calling the CreateUploadTask API to create an upload task, you can obtain this ID through the response parameters.

Responses​

OK
Schema
    Code number

    Error code.

    The following only lists the return codes related to the API business logic. For the complete return codes, please refer to Return codes.

    Return CodeDescriptionHandling Suggestion
    0Success.-
    100000004Signature expired.Please regenerate the signature.
    100000005Signature error.Please confirm whether the parameters for generating the signature are correct.
    350006001API request frequency exceeds the limit.Please confirm the QPS limit of the corresponding API and reduce the request frequency.
    350006002Gateway verification failed.Please contact ZEGOCLOUD Technical Support for assistance.
    350006003Invalid input parameter.Please adjust the value of the corresponding parameter according to the Message prompt.
    350006006Service not activated.Please contact ZEGOCLOUD Technical Support to activate the service permission.
    350010000System error.Please contact ZEGOCLOUD Technical Support for assistance.
    Message string

    Error description.

    RequestId string

    Request ID.

    Data null

    Returned specific information.

Previous

Create an upload task

Next

Describe upload tasks

On this page

Back to top