Update an AI Routine
AI routines must be enabled for your organization to use this endpoint.
Update an existing AI Routine. All request fields are optional, and only supplied fields are changed. Supplying destination replaces the full recipient configuration.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The UUID of the routine.
Query Parameters
Requires an Organization API key. Target user membership ID.
Body
Display name for the routine
1 - 255The AI prompt that will be executed when the routine runs
1Cron expression or human-readable schedule (e.g., "daily", "weekly", "0 9 * * 1")
Optional description of what the routine does
Optional model ID to scope the routine to a specific data model
Whether the routine is active and will execute on schedule
Response
Routine updated successfully
Branch of the shared model the prompt runs against, or null.
ISO 8601 timestamp when the routine was created.
Display-only notes about the routine, or null.
Email delivery configuration for the routine.
Whether the owner has paused the routine.
The unique identifier of the routine.
Most recent completed run, or null if the routine has never completed a run.
The shared model the prompt runs against.
Customer-visible name of the routine, used as the email subject.
Natural language prompt Omni runs on each scheduled run.
Number of distinct deliverable recipients after expanding user groups and removing duplicates.
Six-field cron expression (minute, hour, day-of-month, month, day-of-week, year; use ? for an unspecified day field).
Whether Omni disabled the routine because it could no longer run successfully or safely.
Reason Omni disabled the routine, or null.
IANA timezone identifier used to evaluate the schedule.
Topic scoping query generation, or null.
ISO 8601 timestamp when the routine was last updated.

