v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBAI Routines
Update an AI Routine
Update an existing AI Routine. All request fields are optional, and only supplied fields are changed. Supplying destination replaces the full recipient configuration.
put/v1/ai/routines/{routineId}
Path parameters
idstring uuid required
The UUID of the routine.
Query parameters
userIdstring uuid
Requires an Organization API key. Target user membership ID.
Request body
Response
Routine updated successfully
Example response
{
"destination": {
"recipientEmails": [
"blob.ross@blobsrus.com",
"blob.the.builder@blobsrus.com"
],
"type": "email",
"userGroupIds": [
"550e8400-e29b-41d4-a716-446655440000"
]
},
"lastRun": {
"label": "Delivered",
"state": "COMPLETE"
}
}