Sign inGet Started

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

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--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. Possible values: intent, group, 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.
--precedence <n>Change 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.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird amb routing-rules createCreate an Apple Messages for Business routing rule
bird amb routing-rules deleteDelete an Apple Messages for Business routing rule
bird amb routing-rules getGet an Apple Messages for Business routing rule
bird amb routing-rules listList Apple Messages for Business routing rules

Continua con la documentazione, le guide e gli esempi per questo argomento.