bird whatsapp groups join-requests reject
Usage
Contoh kode
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
Contoh kode
# print the body shape (no credentials needed)
bird whatsapp groups join-requests reject --example
# the body it prints:Contoh kode
{
"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 |
Sumber daya terkait
Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini. Sumber daya tersedia dalam bahasa Inggris.
Pahami konsepnyaShould I use a Bird SDK or call the API directly?Ikuti jalur pembelajaranBuild your first integrationPanduan implementasiSend your first email
Dapatkan ringkasan implementasi