👥 Groups

Reject pending requests to join the group

post/api/{session}/groups/{id}/participants/join-requests/reject

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/{session}/groups/{id}/participants/join-requests/reject
  • Auth: API key in header X-Api-Key

Path parameters

sessionstring required

Session name

idstring required
Example:123123123@g.us

Group ID

Request body

Example request

{
  "participants": [
    {
      "id": "123456789@c.us"
    }
  ]
}

Response

requesterIdstring nullable required

ID of the participant the action was applied to

successboolean required
errornumber

Example response

[
  {
    "requesterId": "123456789@c.us",
    "success": true,
    "error": 404
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.