Update an AI Routine
Update an existing AI Routine. All request fields are optional, and only supplied fields are changed.
destination replaces the full recipient configuration — switching to a different destination type (email, Slack, or webhook) clears the previous destination’s state, such as a linked Slack credential or email recipients.Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Query Parameters
Body
Sets the agent the routine runs through, under the same rules as on create, judged for the routine's owner. A routine that has a condition, or that is personalized for each recipient, returns 400 — remove the condition in the same request with condition: null.
Pass null to run as the organization's main AI agent again. Omit to leave the stored agent unchanged.
"0b1f6c1e-2d3a-4f5b-8c7d-9e0a1b2c3d4e"
Replaces the delivery condition: Omni authors and verifies the condition query, resets the comparison baseline, and cancels any in-progress condition evaluation so a run started under the old condition cannot deliver.
Pass null to remove the condition, making the routine deliver on every scheduled run.
Omit to leave the stored condition unchanged.
The LLM the routine runs on. Must be an approved LLM in AI Hub > General > LLM settings that the routine owner has access to. Use the List available LLMs endpoint to retrieve a list of available LLMs.
At run time, Omni checks the pinned LLM against the owner's LLM audience, or against each recipient's audience for a personalized routine, and falls back to the organization default for whoever it excludes.
Omit to leave the LLM unchanged; pass null to use the organization default.
Response
Routine updated successfully

