bird whatsapp keyword-rules update
Usage
Codebeispiel
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
Codebeispiel
# print the body shape (no credentials needed)
bird whatsapp keyword-rules update --example
# the body it prints:Codebeispiel
{
"keywords": ["no more texts"],
"reply": "You're off the list. ACME Courier won't message you again."
}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 |
|---|---|
| --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. |
| --reply | Replaces the message sent back when a keyword matches. Set it to null to send nothing. Omit to leave it unchanged. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp keyword-rules create | Create a WhatsApp keyword rule |
| bird whatsapp keyword-rules delete | Delete a WhatsApp keyword rule |
| bird whatsapp keyword-rules get | Get a WhatsApp keyword rule |
| bird whatsapp keyword-rules list | List WhatsApp keyword rules |
Verwandte Ressourcen
Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema. Die Ressourcen sind auf Englisch.
Das Konzept verstehenShould I use a Bird SDK or call the API directly?Dem Lernpfad folgenBuild your first integrationImplementierungsleitfadenSend your first email
Implementierungs-Briefing erhalten