Skip to main content
POST
/
v0
/
tasks
/
schedule
Create or update a task schedule
curl --request POST \
  --url https://api.avidoai.com/v0/tasks/schedule \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "criticality": "LOW"
}'
{
  "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "criticality": "LOW",
  "cron": "<string>",
  "jobId": "<string>",
  "nextRunAt": "2023-11-07T05:31:56Z",
  "lastRunAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

Body

application/json
taskId
string<uuid>
required
criticality
enum<string>
required
Available options:
LOW,
MEDIUM,
HIGH

Response

Schedule created or updated successfully

Response schema for task schedule

taskId
string<uuid>
required
criticality
enum<string>
required
Available options:
LOW,
MEDIUM,
HIGH
cron
string
required
jobId
string
required
nextRunAt
string<date-time> | null
required
lastRunAt
string<date-time> | null
required
I