Cancel Generation
POST https://api.vidu.com/ent/v2/tasks/{id}/cancel
Request Header
Field | Value | Description |
---|---|---|
Content-Type | application/json | Data Exchange Format |
Authorization | Token {your api key} | Replace {} with your API key |
Request Body
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 |
curl -X POST -H "Authorization: Token {your_api_key}" -H "Content-Type: application/json" -d '{"id": "your_task_id_here"}' https://api.vidu.com/ent/v2/tasks/{your_id}/cancel
Response Body
Field | Type | Description |
---|---|---|
In case of an error, a specific error code will be returned. |
Successful response
{}
Failed response
{"code": 400,"reason": "BadRequest","message": "task state is scheduled, can not cancel","metadata": {"trace_id": "04e5c2fe159ff7c574acd0424e78c35f"}}