Update schedule
Schedules (Organization)
Update schedule
Update an existing schedule.
PATCH
Update schedule
Documentation Index
Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
Use this file to discover all available pages before exploring further.
Permissions
Requires a service user with theManageOrgSchedules permission at the organization level.
Notes
All fields are optional. Only the fields provided in the request body will be updated. To disable a schedule, setenabled to false.
Setting playbook_id to null will clear the associated playbook.
You can change the schedule_type between recurring and one_time. When changing to one_time, provide scheduled_at with a future ISO 8601 datetime. When changing to recurring, provide frequency with a valid cron expression.
Execution identity
Therun_as_user_id parameter controls which user identity the schedule runs as. When a schedule fires, sessions are created under this user — they receive notifications and the session appears in their history.
- Set a user: Provide a valid user ID to change the execution identity. This requires:
- The service user must have
ImpersonateOrgSessionspermission - The target user must be a member of the organization
- The target user must have
UseDevinSessionspermission
- The service user must have
- Clear (set to
null): Reverts the schedule to run as the default bot user - Omit the field: Leaves the current execution identity unchanged
Authorizations
Service User credential (prefix: cog_)
Path Parameters
Schedule ID (prefix: sched-)
Example:
"sched-abc123def456"
Body
application/json
Available options:
devin, data_analyst Available options:
always, failure, never 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.
Available options:
recurring, one_time Response
Successful Response
Available options:
devin, data_analyst Available options:
always, failure, never Available options:
recurring, one_time 