bird whatsapp groups join-requests reject
Usage
Ejemplo de código
bird whatsapp groups join-requests reject <group-id> [flags]Description
Reject WhatsApp group join requests
Reject up to 50 pending join requests in one call. WhatsApp decides each one on its own, so the response splits them into decided and failed; a failure on one leaves the rest applied. A group that is not active refuses the whole call with a 409 WhatsAppGroupNotActive.
Build the request from flags, a JSON WhatsAppGroupJoinRequestDecision 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.
This is destructive and cannot be undone; pass --yes to confirm.
Examples
Ejemplo de código
# print the body shape (no credentials needed)
bird whatsapp groups join-requests reject --example
# the body it prints:Ejemplo de código
{
"join_request_ids": ["wgj_01krdgeqcxet5s7t44vh8rt9mg"]
}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 |
Safety
| Name | Description |
|---|---|
| --yes | Confirm a destructive action (required; the CLI never prompts) |
Options
| Name | Description |
|---|---|
| --join-request-ids <value>… | The join requests to act on, as returned by GET /v1/whatsapp/groups/{group_id}/join-requests. Each is decided on its own, so one can fail while the rest succeed. An ID that names no waiting request returns a 422 WhatsAppGroupJoinRequestNotFound. The 50 is Bird's own request bound, not a WhatsApp one: how many people the group can hold does not limit how many can queue at its link, so a rejection sweep is not held to the size of the group it is refusing entry to. (required; or in --body-file) |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp groups join-requests approve | Approve WhatsApp group join requests |
| bird whatsapp groups join-requests list | List a WhatsApp group's join requests |
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