Connections

POST /connections/{phoneNumber}/group-member-add-mode

Changed on

Set who can add members to the group

Request

  • Base URL
    http://localhost:3025
  • Auth
    API key in header x-api-key

Path parameters

phoneNumberstring required
Example:+551234567890

Phone number for connection. Must have + prefix.

Request body

jidstring required

Group JID

mode'admin_add' | 'all_member_add' required

Who can add members. admin_add restricts to admins only. all_member_add allows all members.

Example request

{
  "jid": "123456789012345678@g.us",
  "mode": "all_member_add"
}

Response

Member add mode updated successfully

Changes

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status