bird amb routing-rules update
Usage
Esempio di codice
bird amb routing-rules update <routing-rule-id> [flags]Description
Update an Apple Messages for Business routing rule
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.
Build the request from flags, a JSON AMBRoutingRuleUpdate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.
Examples
Esempio di codice
# print the body shape (no credentials needed)
bird amb routing-rules update --example
# the body it prints:Esempio di codice
{
"precedence": 20
}Options
Request
| Name | Description |
|---|---|
--body-file | Read the JSON request body from this file; "-" reads stdin |
--example | Print a complete example request body, then exit |
--dry-run | Print the resolved request without sending it, then exit |
--idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
--business-account-id | Move this rule to another Apple Messages for Business brand in the workspace. |
--match-kind | Replace 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. Possible values: intent, group, both. |
--match-intent-id | The 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-id | The 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. |
--queue | Change the queue this rule files a matching conversation into. |
--precedence <n> | Change this rule's evaluation order among the business's other rules. |
--is-default | Set to true to make this the rule that catches a conversation matching nothing else, or to false to stop it from being the default. |
--response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
bird amb routing-rules create | Create an Apple Messages for Business routing rule |
bird amb routing-rules delete | Delete an Apple Messages for Business routing rule |
bird amb routing-rules get | Get an Apple Messages for Business routing rule |
bird amb routing-rules list | List Apple Messages for Business routing rules |
Risorse correlate
Continua con la documentazione, le guide e gli esempi per questo argomento.