Update a ruleset
Authorizations
Path Parameters
ID of the ruleset to update.
Body
Name of the ruleset (optional).
250"Updated rule name"
Event that triggers this rule (optional). Must be one of: messages.new_conversation, messages.incoming, messages.response, messages.disable_ai, messages.delivery_failure, messages.spam, messages.note, status.closed, status.opened, status.snoozed, status.unsnoozed, teammates.assigned, teammate.mentioned, time.unanswered_by_client, time.unanswered_by_team, tickets.ticket_done
50"messages.response"
Additional data for the trigger (optional):
- For "teammates.assigned" or "teammate.mentioned": "no_one", "anyone", or an Agent ID
- For "time.*" triggers: duration and period in format "{duration} {period}" (e.g., "2 hours", "3 days")
"3 hours"
Array of filter conditions (optional).
[
{
"field": "message.content",
"operator": "contains",
"value": "urgent"
}
]
Array of actions to execute when rule matches (optional).
[
{
"name": "conversation.tag",
"data": { "tag": "urgent" }
}
]
Status of the ruleset (optional).
PAUSED, LIVE "PAUSED"
If true, stops processing subsequent rules when this rule matches (optional).
true
Priority order for rule execution (optional). Other rules are automatically reordered.
1
Response
Ruleset updated successfully.
Unique identifier for the ruleset
Name of the ruleset
250"Auto-close spam conversations"
Current status of the ruleset
PAUSED, LIVE "LIVE"
Priority order for rule execution (lower numbers execute first)
0
If true, stops processing subsequent rules when this rule matches
false
Event that triggers this rule. Accepted triggers:
- messages.new_conversation
- messages.incoming
- messages.response
- messages.delivery_failure
- messages.spam
- messages.note
- messages.disable_ai
- status.closed
- status.opened
- status.snoozed
- status.unsnoozed
- teammates.assigned
- teammate.mentioned
- time.unanswered_by_client
- time.unanswered_by_team
- tickets.ticket_done
50"messages.incoming"
Timestamp when the ruleset was created (UTC)
"2025-01-21T10:30:00Z"
Number of times this rule has been successfully applied
42
Optional description of what the ruleset does
500"Automatically closes conversations marked as spam"
Additional data for the trigger (required for certain triggers):
- For "teammates.assigned" or "teammate.mentioned": "no_one", "anyone", or an Agent ID
- For "time.*" triggers: duration and period in format "{duration} {period}" (e.g., "2 hours", "3 days")
250"2 hours"
Array of filter conditions that must be met for the rule to execute. Each filter contains conditions to match against the entity.
[
{
"field": "conversation.status",
"operator": "equals",
"value": "OPENED"
}
]
Array of actions to execute when the rule matches. Each action has a name and optional data.
[
{ "name": "conversation.close", "data": {} }
]
Timestamp when the rule was last applied (UTC)
"2025-01-21T15:45:30Z"