Update agent schedule
Updates an existing agent schedule. All fields are optional. The update changes only the provided fields (PATCH semantics).
To pause or resume a schedule, set the enabled field to false or true. Updating the schedule configuration (interval or cron) reschedules future executions. Executions currently in progress are not affected.
Path parameters
A unique key that identifies an agent.
The unique key of the agent.
A unique key that identifies an agent schedule.
The unique key of the schedule to update.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"name": "Daily Summary Report",
"message": [
{
"type": "text",
"content": "I need help with my widget installation",
"external_id": "1787105665.831929"
}
],
"schedule": {
"type": "interval",
"interval": "PT24H"
}
}Response
Updated schedule.
Example response
{
"key": "daily-report",
"agent_key": "customer_support",
"name": "Daily Summary Report",
"description": "Generates a daily summary report of customer support activities",
"message": [
{
"type": "text",
"content": "Generate a summary of today's activities"
}
],
"schedule": {
"type": "interval",
"interval": "PT24H"
},
"enabled": true,
"session_metadata": {
"report_type": "daily",
"format": "markdown"
},
"max_executions_to_keep": 10,
"stall_timeout_seconds": 1800,
"last_execution_at": "2024-01-15T10:30:00Z",
"created_at": "1970-01-01T00:00:00Z"
}Changes
Changed in 2 of the 7 revisions of this API.22
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the request property
request-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●