Task Management

POST https://api.vidu.com/ent/v2/tasks/{id}/cancel

Field
Value
Description
Content-Type
application/json
Data Exchange Format
Authorization
Token {your api key}
Replace {} with your API key
Field
Type
Required
Description
id
String
Required
Task id
The id is returned upon the successful creation of a task by the Start Generating API
Field
Type
Description
If the task gets canceled successfully, it returns null.If it fails, you'll get an error code - check the error code docs for details.

Successful response

{}

Failed response

{
    "code": 400,
    "reason": "BadRequest",
    "message": "task state is scheduled, can not cancel",
    "metadata": {
        "trace_id": "04e5c2fe159ff7c574acd0424e78c35f"
    }
}