Skip to navigation

Update schedule

Update an existing schedule.

Authentication

AuthorizationBearer

Personal API Key (apk_user_) or Service API Key (apk_)

Path parameters

schedule_idstringRequired

Schedule ID (prefix: sched-)

org_idstringRequired

Request

This endpoint expects an object.
agentenum or nullOptional
Allowed values:
bypass_approvalboolean or nullOptional
enabledboolean or nullOptional
frequencystring or nullOptional
interval_countinteger or nullOptional
namestring or nullOptional
notify_onenum or nullOptional
Allowed values:
playbook_idstring or nullOptional
promptstring or nullOptional
run_as_user_idstring or nullOptional
Set the user ID that this schedule will run as. Requires ImpersonateOrgSessions permission. Setting to null reverts to the default bot user. Omitting the field leaves the current identity unchanged.
schedule_typeenum or nullOptional
Allowed values:
scheduled_atdatetime or nullOptional
slack_channel_idstring or nullOptional
slack_team_idstring or nullOptional
tagslist of strings or nullOptional
target_devin_idstring or nullOptional

Response

Successful Response
agentenum
Allowed values:
consecutive_failuresinteger
Number of consecutive failed executions.
created_atdatetime
ISO 8601 timestamp when the schedule was created.
created_bystring or null
User ID of the schedule creator.
enabledboolean
Whether the schedule is currently active.
frequencystring or null
How often the schedule repeats.
last_error_atdatetime or null
ISO 8601 timestamp of the most recent error.
last_error_messagestring or null
Error message from the most recent failed execution.
last_executed_atdatetime or null
ISO 8601 timestamp of the last execution.
namestring
Display name of the schedule.
notify_onenum
Allowed values:
org_idstring

Organization that owns this schedule (prefix org-).

playbookobject or null
promptstring
scheduled_session_idstring
updated_atdatetime
bypass_approvalbooleanOptionalDefaults to false
interval_countintegerOptionalDefaults to 1
last_edited_bystring or nullOptional
User ID of the last person to edit the schedule.
schedule_typeenumOptionalDefaults to recurring
Allowed values:
scheduled_atdatetime or nullOptional
slack_channel_idstring or nullOptional
slack_team_idstring or nullOptional
tagslist of strings or nullOptional
target_devin_idstring or nullOptional

Errors

422
Unprocessable Entity Error