group

approve group membership requests

Approve pending group membership requests

post/instances/{id}/client/action/accept-group-member-requests

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/accept-group-member-requests
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

chatIdstring required

Group ID in the format <groupId>@g.us

Example request

{
  "chatId": "123456789@g.us",
  "requesterIds": "1234567890@c.us"
}

Response

Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: Returns the approval results.

status'success' | 'error'

Whether the request reached the instance. success here does not mean the action was carried out — that is reported by data.status, which is the authoritative one. A malformed input arrives as status: success with data.status: error.

Example response

{
  "status": "success",
  "data": {
    "status": "success",
    "data": {
      "count": 2,
      "details": [
        {
          "requesterId": "1234567890@c.us",
          "status": "approved"
        }
      ]
    }
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/accept-group-member-requests"
  }
}

Changes

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