Sign inGet Started

bird amb routing-rules update

Usage

Contoh kode
bird amb routing-rules update <routing-rule-id> [flags]

Description

Update an Apple Messages for Business routing rule
Changes a routing rule's queue, precedence, or default status. What it matches is fixed once created; to change that, delete this rule and create another. Setting is_default to true while the business already has a different default rule returns a 409.
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

Contoh kode
# print the body shape (no credentials needed)
bird amb routing-rules update --example

# the body it prints:
Contoh kode
{
  "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
--queueChange the queue this rule files a matching conversation into. What the rule matches is fixed once created; to change that, delete this rule and create another.
--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. Setting it true while the business already has a different default rule returns a 409.
--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

Sumber daya terkait

Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini. Sumber daya tersedia dalam bahasa Inggris.

Dapatkan ringkasan implementasi