Skip to main content
PATCH
/
schedules
/
{id}
Update a schedule
curl --request PATCH \
  --url https://app.strix.ai/api/v1/schedules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "pause",
  "name": "<string>",
  "cron_expression": "<string>",
  "timezone": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "cron": "<string>",
  "timezone": "<string>",
  "isPaused": true,
  "organization_id": "<string>",
  "created_by": "<string>",
  "domain_ids": [
    "<string>"
  ],
  "repository_ids": [
    "<string>"
  ],
  "concerns": "<string>",
  "focus": "<string>",
  "context": "<string>",
  "last_run_status": "<string>",
  "last_run_error": "<string>",
  "next_run_at": "2023-11-07T05:31:56Z",
  "last_run_at": "2023-11-07T05:31:56Z",
  "run_count": 123,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API token from Settings > API Access

Path Parameters

id
string
required

Body

application/json
action
enum<string>

Pause or resume the schedule

Available options:
pause,
resume
name
string
cron_expression
string
timezone
string

Response

200 - application/json

Schedule updated

id
string
name
string
cron
string

Cron expression (without timezone prefix)

timezone
string
isPaused
boolean
organization_id
string
created_by
string
domain_ids
string[] | null
repository_ids
string[] | null
concerns
string | null
focus
string | null
context
string | null
last_run_status
string | null
last_run_error
string | null
next_run_at
string<date-time> | null
last_run_at
string<date-time> | null
run_count
integer
createdAt
string<date-time>