Relay docs
API ReferenceWhatsapp

Promote or demote a group admin

Promote a group member to admin (or demote them). Requires the `conversations:write` scope, and the connected number must itself be a group admin (WhatsApp returns 403 otherwise).

POST
/v1/public/whatsapp/groups/{conversationId}/admins

Authorization

bearerAuth
AuthorizationBearer <token>

Workspace API key, e.g. rl_live_….

In: header

Path Parameters

conversationId*string

The Relay conversation id of the group.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

phone*string

The member's phone number (country code + number).

admin*boolean

true to promote to admin, false to demote.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/public/whatsapp/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08/admins" \  -H "Content-Type: application/json" \  -d '{    "phone": "919876543210",    "admin": true  }'
{  "group_jid": "string",  "phone": "string",  "is_admin": true}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}