Skip to main content
PUT
Replace routing rules
This call replaces the whole list. To add, edit, or reorder a single rule, read the list with List rules, change it, and send it back complete.
  • Array order is priority: the first rule is checked first.
  • rules: [] removes every rule.
  • Every saved rule gets a new id.
  • If one rule is invalid, nothing is saved.
  • target_workflow_id must be one of the agent’s tasks, otherwise 400 invalid_rule_target_workflow.

Conditions

All conditions of a rule must match. A rule without conditions matches every conversation, so put it last. Text comparisons ignore upper and lower case. Before going live, check the order with Test a message.

Authorizations

X-API-Key
string
header
required

API key for authentication. Keys are prefixed with nxr_live_.

Path Parameters

id
string<uuid>
required

Agent ID (master_workflow in the API). A malformed ID returns 400 invalid_group_id.

Body

application/json
rules
object[]
required
confirm
enum<boolean>
required

Must be true.

Available options:
true

Response

Saved rules.

agent_group_id
string<uuid>
required
rules
object[]
required
Last modified on September 28, 2026