Sign inGet started

bird whatsapp keyword-rules update

Usage

Exemple de code
bird whatsapp keyword-rules update <id> [flags]

Description

Update a WhatsApp keyword rule
Change one of your own keyword rules: its reply or its extra keywords. Bird's own rules cannot be changed; create your own instead with bird whatsapp keyword-rules create. Omitting keywords leaves the set alone, while sending an empty list clears your additions back to Bird's.
Build the request from flags, a JSON WhatsAppKeywordRuleUpdate 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

Exemple de code
# print the body shape (no credentials needed)
bird whatsapp keyword-rules update --example

# the body it prints:
Exemple de code
{
  "keywords": ["no more texts"],
  "reply": "You're off the list. ACME Courier won't message you again."
}

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
--keywords <value>…Replaces the extra keywords this rule matches, on top of the ones Bird ships. Send an empty array to keep Bird's keywords only. Omit to leave the current ones unchanged.
--replyReplaces the message sent back when a keyword matches. Set it to null to send nothing. Omit to leave it unchanged.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp keyword-rules createCreate a WhatsApp keyword rule
bird whatsapp keyword-rules deleteDelete a WhatsApp keyword rule
bird whatsapp keyword-rules getGet a WhatsApp keyword rule
bird whatsapp keyword-rules listList WhatsApp keyword rules