curl --request POST \
--url https://api.maxapi.io/api/v1/task/9db7d1ed-d1e5-4d11-9f3a-61f653b905ad/cancel \
--header 'Authorization: Bearer <token>'
{
"code": 0,
"msg": "ok"
}
Cancel a task that is in progress
curl --request POST \
--url https://api.maxapi.io/api/v1/task/9db7d1ed-d1e5-4d11-9f3a-61f653b905ad/cancel \
--header 'Authorization: Bearer <token>'
{
"code": 0,
"msg": "ok"
}
PENDING. Once a task enters PROCESSING or SUBMITTED, it can no longer be cancelled.
curl --request POST \
--url https://api.maxapi.io/api/v1/task/9db7d1ed-d1e5-4d11-9f3a-61f653b905ad/cancel \
--header 'Authorization: Bearer <token>'
{
"code": 0,
"msg": "ok"
}