Sign inGet started

bird whatsapp groups join-requests approve

Usage

Contoh kode
bird whatsapp groups join-requests approve <group-id> [flags]

Description

Approve WhatsApp group join requests
Approve 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.
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.

Procedure

Step 5 of 5 of "Create a WhatsApp group and let people into it". Previous: bird whatsapp groups join-requests list.

Examples

Contoh kode
# print the body shape (no credentials needed)
bird whatsapp groups join-requests approve --example

# the body it prints:
Contoh kode
{
  "join_request_ids": ["wgj_01krdgeqcxet5s7t44vh8rt9mg"]
}

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
--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-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp groups join-requests listList a WhatsApp group's join requests
bird whatsapp groups join-requests rejectReject WhatsApp group join requests

Sumber daya terkait

Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini. Sumber daya tersedia dalam bahasa Inggris.

Dapatkan ringkasan implementasi