bird whatsapp suppressions add
Usage
代码示例
bird whatsapp suppressions add [flags]Description
Create a WhatsApp suppression
Record a WhatsApp address on the workspace suppression list.
Build the request from flags, a JSON WhatsAppSuppressionCreate 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
代码示例
# print the body shape (no credentials needed)
bird whatsapp suppressions add --example
# the body it prints:代码示例
{
"address": "+5511977670804"
}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 |
|---|---|
| --address | WhatsApp address to suppress. For a phone number, supply canonical E.164 with a leading plus sign, such as +5511977670804. A value that is not a valid phone number returns a 422. (required; or in --body-file) |
| --waba | Limit the suppression to messages sent from this WhatsApp Business Account, identified by its WhatsApp-issued account ID. Omit it to block the address for the whole workspace, whichever account sends. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp suppressions get | Get a WhatsApp suppression |
| bird whatsapp suppressions list | List WhatsApp suppressions |
| bird whatsapp suppressions remove | End a WhatsApp suppression |