bird whatsapp groups join-requests approve
Usage
代码示例
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
代码示例
# print the body shape (no credentials needed)
bird whatsapp groups join-requests approve --example
# the body it prints:代码示例
{
"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 |
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 list | List a WhatsApp group's join requests |
| bird whatsapp groups join-requests reject | Reject WhatsApp group join requests |