Skip to main content
PUT
/
api
/
workspaces
/
{id}
/
schedules
/
{ref}
Update Schedule
curl --request PUT \
  --url http://localhost:8080/api/workspaces/{id}/schedules/{ref} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cron_expression": "<string>",
  "enabled": true,
  "instructions": "<string>",
  "name": "<string>"
}
'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "cron_expression": "<string>",
  "enabled": true,
  "last_run_at": "<string>",
  "next_run_at": "<string>",
  "instructions": "<string>",
  "last_run_status": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "name": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
ref
string
required

Body

application/json
cron_expression
string | null
enabled
boolean | null
instructions
string | null
name
string | null

Response

Successful Response

id
string
required
workspace_id
string
required
cron_expression
string
required
enabled
boolean
required
last_run_at
string | null
required
next_run_at
string | null
required
instructions
string
required
last_run_status
string | null
required
created_at
string
required
updated_at
string
required
name
string
required
status
string
required