bird amb suppressions add
Usage
Code example
bird amb suppressions add [flags]Description
Create an Apple Messages for Business suppression
Stop messages to one address, for one business account or for the whole workspace. Blocks every outbound path to it: replies, API sends, typing indicators and invitations.
Build the request from flags, a JSON AMBSuppressionCreate 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
Code example
# print the body shape (no credentials needed)
bird amb suppressions add --example
# the body it prints:Code example
{
"address": "+15551234567",
"address_type": "phone_number"
}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 | The business account to stop. Omit to stop the address for every account in the workspace. An account in another workspace returns 404. |
--address | The customer to stop messaging: a phone number in E.164 format with a leading plus sign, or the exact opaque identifier Apple supplied. address_type says which. (required; or in --body-file) |
--address-type | What kind of value address holds. - phone_number means address is the customer's phone number. Apple's CloseSession event carries a phone number rather than an opaque identifier, so a suppression opened by a close on a conversation identified by phone number takes this kind. - opaque_user_id means address is the opaque identifier Apple assigns to the customer's conversation with the business, stable across a close and a later re-initiation. Possible values: phone_number, opaque_user_id. (required; or in --body-file) |
--response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
bird amb suppressions get | Get an Apple Messages for Business suppression |
bird amb suppressions list | List Apple Messages for Business suppressions |
bird amb suppressions remove | End an Apple Messages for Business suppression |
Related resources
Continue with the documentation, guides and examples for this topic.