Sign inGet Started

bird whatsapp groups join-requests reject

Usage

代码示例
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

代码示例
# print the body shape (no credentials needed)
bird whatsapp groups join-requests reject --example

# the body it prints:
代码示例
{
  "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

Safety

NameDescription
--yesConfirm a destructive action (required; the CLI never prompts)

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 approveApprove WhatsApp group join requests
bird whatsapp groups join-requests listList a WhatsApp group's join requests