Skip to content


The method removes a participant from group chat administration rights.


To remove a participant from group chat administration rights, you have to execute a request at:

POST {{APIUrl}}/waInstance{{idInstance}}/removeAdmin/{{apiTokenInstance}}

For APIUrl, idInstance and apiTokenInstance request parameters, refer to Before you start section.

Request parameters#

Parameter Type Mandatory Description
groupId string Yes Group chat Id
participantChatId string Yes Id of a group participant, who you'd like to remove from group administration rights

Request body example#

Removing a participant from group administration rights:

    "groupId": "",
    "participantChatId": ""


Response parameters#

Parameter Type Description
removeAdmin boolean Flag of removing a group participant from administration rights

Response body example#

    "removeAdmin": true

RemoveAdmin errors#

For a list of errors common to all methods, refer to Common errors section

Request examples#

import requests

url = "{{APIUrl}}/waInstance{{idInstance}}/removeAdmin/{{apiTokenInstance}}"

payload = "{\r\n    \"groupId\": \"\",\r\n    \"participantChatId\": \"\",\r\n}"
headers = {
  'Content-Type': 'application/json'

response = requests.request("POST", url, headers=headers, data = payload)

curl --location '{{APIUrl}}/waInstance{{idInstance}}/removeAdmin/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "groupId": "",
    "participantChatId": ""
var restTemplate = new RestTemplate();
var requestUrl = new StringBuilder();

var headers = new HttpHeaders();

var jsonBody = "{\"groupId\": \"\",\"participantChatId\": \"\"}";

var requestEntity = new HttpEntity<>(jsonBody, headers);

var response =, HttpMethod.POST, requestEntity, String.class);
var requestUrl = new StringBuilder();

var response =
    .header("Content-Type", "application/json")
    .body("{\"groupId\": \"\",\"participantChatId\": \"\"}")

Sub RemoveAdmin()
    Dim url As String
    Dim RequestBody As String
    Dim http As Object
    Dim response As String

    ' The idInstance and apiTokenInstance values are available in your account, double brackets must be removed
    url = "{{APIUrl}}/waInstance{{idInstance}}/removeAdmin/{{apiTokenInstance}}"

    ' groupId - group chat identifier, participantChatId - identifier of the group participant whose group administration rights need to be revoked
    RequestBody = "{""groupId"":"""",""participantChatId"":""""}"

    Set http = CreateObject("MSXML2.XMLHTTP")

    With http
        .Open "POST", url, False
        .setRequestHeader "Content-Type", "application/json"
        .Send RequestBody
    End With

    response = http.responseText

    Debug.Print response

    ' Outputting the answer to the desired cell
    Range("A1").Value = response

    Set http = Nothing
End Sub