Cancel a task
DELETE/v1/task/:task_id
Cancel a task.
Request
Path Parameters
task_id Task Idrequired
Responses
- 204
- 403
- 422
- 501
The task was successfully cancelled.
The user is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
An attempt was made to cancel a task that is not a parse task.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"status_code": 501,
"detail": "Cancellation only implemented for parse tasks."
}
{
"status_code": 501,
"detail": "Cancellation only implemented for parse tasks."
}
Loading...