Update an Apple Messages for Business routing rule
/v1/amb/routing-rules/{routing_rule_id}const result = await bird.amb.routingRules.update(
"arr_01krdgeqcxet5s7t44vh8rt9mg",
{ queue: "sales", precedence: 0, is_default: false },
);
console.log(result);result = client.amb.routing_rules.update('arr_01krdgeqcxet5s7t44vh8rt9mg', queue='sales', precedence=0, is_default=False)
print(result)result, err := client.Amb.RoutingRules.Update(ctx, "arr_01krdgeqcxet5s7t44vh8rt9mg", bird.AmbRoutingRulesUpdateParams{Queue: bird.Ptr("sales"), Precedence: bird.Ptr(0), IsDefault: bird.Ptr(false)})
if err != nil {
log.Fatal(err)
}
fmt.Println(result)$bird->amb->routingRules->update('arr_01krdgeqcxet5s7t44vh8rt9mg', (new Model\AMBRoutingRuleUpdate())->setQueue('sales')->setPrecedence(0)->setIsDefault(false));bird amb routing-rules update <routing-rule-id> --precedence 20curl -X PATCH "https://us1.platform.bird.com/v1/amb/routing-rules/{routing_rule_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"precedence": 20
}'{
"created_at": "2026-05-20T09:14:52Z",
"updated_at": "2026-05-25T16:42:01Z",
"id": "arr_01krdgeqcxet5s7t44vh8rt9mg",
"business_account_id": "abz_01krdgeqcxet5s7t44vh8rt9mg",
"match_kind": "intent",
"match_intent_id": "order_status",
"match_group_id": "support",
"queue": "billing",
"precedence": 10,
"is_default": false
}
Changes a routing rule's business, match, queue, precedence, or default status. The match changes as a unit: send match_kind with the intent and group ids it requires, as on create. Returns a 409 when the update would leave this rule as the default of a business that already has a different default rule. The change applies to conversations that start or reopen afterwards.
Paramètres
routing_rule_idstringCorps de la requête
business_account_idMove this rule to another Apple Messages for Business brand in the workspace.
queueChange the queue this rule files a matching conversation into.
precedenceChange this rule's evaluation order among the business's other rules.
is_defaultSet to true to make this the rule that catches a conversation matching nothing else, or to false to stop it from being the default.
business_account_idMove this rule to another Apple Messages for Business brand in the workspace.
match_kindReplace what this rule matches. Send it with the ids the new kind requires, validated as on create. A stored id the new kind does not use is cleared.
Value: intent
match_intent_idThe entry point intent to match, as sent in Apple's intentID. Requires match_kind: required when it is intent or both, and rejected when it is group.
queueChange the queue this rule files a matching conversation into.
precedenceChange this rule's evaluation order among the business's other rules.
is_defaultSet to true to make this the rule that catches a conversation matching nothing else, or to false to stop it from being the default.
business_account_idMove this rule to another Apple Messages for Business brand in the workspace.
match_kindReplace what this rule matches. Send it with the ids the new kind requires, validated as on create. A stored id the new kind does not use is cleared.
Value: group
match_group_idThe entry point group to match, as sent in Apple's groupID. Requires match_kind: required when it is group or both, and rejected when it is intent.
queueChange the queue this rule files a matching conversation into.
precedenceChange this rule's evaluation order among the business's other rules.
is_defaultSet to true to make this the rule that catches a conversation matching nothing else, or to false to stop it from being the default.
business_account_idMove this rule to another Apple Messages for Business brand in the workspace.
match_kindReplace what this rule matches. Send it with the ids the new kind requires, validated as on create. A stored id the new kind does not use is cleared.
Value: both
match_intent_idThe entry point intent to match, as sent in Apple's intentID. Requires match_kind: required when it is intent or both, and rejected when it is group.
match_group_idThe entry point group to match, as sent in Apple's groupID. Requires match_kind: required when it is group or both, and rejected when it is intent.
queueChange the queue this rule files a matching conversation into.
precedenceChange this rule's evaluation order among the business's other rules.
is_defaultSet to true to make this the rule that catches a conversation matching nothing else, or to false to stop it from being the default.
Contenu de la réponse
created_atupdated_atidUnique identifier for the routing rule.
business_account_idThe Apple Messages for Business brand this rule belongs to.
match_kindWhat a routing rule matches against the entry point that started the conversation.
intentmatches on the entry point's intent alone:match_intent_idis set andmatch_group_idis null.groupmatches on the entry point's group alone:match_group_idis set andmatch_intent_idis null.bothmatches only when the entry point carries the given intent and the given group together, somatch_intent_idandmatch_group_idare both set. There are two match fields rather than one becausebothneeds to carry an intent and a group at once.
Possible values: intent, group, both
match_intent_idThe entry point intent this rule matches, as sent in Apple's intentID. Set when match_kind is intent or both, null when it is group.
match_group_idThe entry point group this rule matches, as sent in Apple's groupID. Set when match_kind is group or both, null when it is intent.
queueThe queue a matching conversation is filed into. A queue is a label your console filters by rather than a resource you create ahead of time, so any value routes.
precedenceEvaluation order among this business's rules. The highest-precedence rule a conversation matches wins; rules tied on precedence are evaluated by their id.
is_defaultWhether this rule catches a conversation that matches nothing else. A business has at most one. A conversation created or reopened while none exists routes to an empty queue, which the console lists as unrouted.
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet.