Cancel Jobs
Cancel all pending jobs and remove them from queue.
Pricing
Request
Authentication
Body
Parameter
Type
Description
Examples
Last updated
Cancel all pending jobs and remove them from queue.
Last updated
POST /api/task/reset_task HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"task_uuid": "text"
}Authorization: Bearer RODIN_API_KEYexport RODIN_API_KEY="your api key"
curl -X 'POST' \
'https://vurse.deemos.dev/api/task/reset_task' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"task_uuid": "your-task-uuid"
}'
unset RODIN_API_KEYimport requests
# Constants
ENDPOINT = "https://vurse.deemos.dev/api/task/reset_task"
API_KEY = "your api key" # Replace with your actual API key
TASK_UUID = "your-task-uuid" # Replace with your actual task UUID
# Prepare the headers
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': f'Bearer {API_KEY}',
}
# Prepare the JSON payload
data = {
"task_uuid": TASK_UUID
}
# Make the POST request
response = requests.post(ENDPOINT, headers=headers, json=data)
# Parse and return the JSON response
print(response.json())