bird whatsapp groups update
Usage
Ejemplo de código
bird whatsapp groups update <group-id> [flags]Description
Update a WhatsApp group
Change a group's subject, description or picture. Fields you omit are left alone. WhatsApp applies each field separately, so one can be refused while the others take effect. Only an active group can be changed.
Build the request from flags, a JSON WhatsAppGroupUpdate 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
Ejemplo de código
# print the body shape (no credentials needed)
bird whatsapp groups update --example
# the body it prints:Ejemplo de código
{
"description": "Discuss the latest timepieces and share reviews.",
"profile_picture_url": "https://media.example.com/whatsapp/groups/square.jpg",
"subject": "Watch Enthusiasts"
}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 |
|---|---|
| --subject | A new name for the group. Participants see the change in the group's chat. |
| --description | A new description for the group. Send null to clear it; an empty string is a 422 rather than a second way to clear. |
| --profile-picture-url | A new picture for the group, naming a file in your workspace's media library. WhatsApp takes a square JPEG of at least 192 by 192 pixels and up to 5 MB; anything else returns a 422. Sending null clears the picture Bird stores, and an empty string is a 422 rather than a second way to clear it; WhatsApp has no operation for removing a group's photo, so the one participants see stays until another picture replaces it. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp groups create | Create a WhatsApp group |
| bird whatsapp groups delete | Delete a WhatsApp group |
| bird whatsapp groups get | Get a WhatsApp group |
| bird whatsapp groups list | List WhatsApp groups |
Recursos relacionados
Continúa con la documentación, guías y ejemplos sobre este tema. Los recursos están en inglés.
Comprender el conceptoShould I use a Bird SDK or call the API directly?Seguir la ruta de aprendizajeBuild your first integrationGuía de implementaciónSend your first email
Obtener un resumen de implementación