POST
/
workflows
/
schedules
/
update
Update workflow schedule
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/schedules/update \
  --header 'Content-Type: application/json' \
  --data '{
  "scheduleId": "<string>",
  "cronExpression": "<string>",
  "timezone": "<string>",
  "params": {},
  "enabled": true,
  "loginId": "<string>"
}'
{
  "id": "<string>",
  "cronExpression": "<string>",
  "timezone": "<string>",
  "params": {},
  "enabled": true,
  "logins": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ]
}

Body

application/json

Update workflow schedule parameters

scheduleId
string
required

The external ID of the schedule to update

cronExpression
string

Cron expression defining when the workflow should run. Supports standard Unix cron format with optional seconds field (e.g.,0 0 * * * for daily at midnight, */5 * * * * for every 5 minutes). Uses cron-parser for validation and parsing.

timezone
string

Timezone for cron expression. See List of tz database time zones for valid values.

params
object | null

Parameters for the schedule

enabled
boolean

Whether the schedule is enabled or disabled

loginId
string

External ID of the login to set schedule for

Response

Schedule updated successfully

id
string
required

ID of the workflow schedule

cronExpression
string
required

Cron expression defining when the workflow should run. Supports standard Unix cron format with optional seconds field (e.g.,0 0 * * * for daily at midnight, */5 * * * * for every 5 minutes). Uses cron-parser for validation and parsing.

timezone
string
required

Timezone for cron expression. See List of tz database time zones for valid values.

params
object | null
required

Parameters for the schedule

enabled
boolean
required

Whether the schedule is enabled or disabled

logins
object[]
required

List of logins to execute the workflow with.