v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBAI Routines
Update a routine
Update a routine. All request fields are optional, and only supplied fields are changed. Supplying destination replaces the full recipient configuration.
patch/api/v1/ai/routines/{id}
Path parameters
idstring uuid required
The UUID of the routine.
The UUID of the routine.
Query parameters
userIdstring uuid
Target user membership ID (for org-scoped API keys)
Target user membership ID (for org-scoped API keys)
Request body
Example request
{
"destination": {
"recipientEmails": [
"alice@example.com",
"bob@example.com"
],
"type": "email",
"userGroupIds": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
}Response
Updated routine details.
Example response
{
"destination": {
"recipientEmails": [
"alice@example.com",
"bob@example.com"
],
"type": "email",
"userGroupIds": [
"550e8400-e29b-41d4-a716-446655440000"
]
},
"lastRun": {
"label": "Delivered",
"state": "COMPLETE"
}
}