Skip to content


The method sets a group chat participant as an administrator.


To set a group chat participant as an administrator, you have to execute a request at:


For 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 set as an administartor

Request body example#

Setting a group chat participants as an administrator:

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


Response parameters#

Parameter Type Description
setGroupAdmin boolean Setting a group participant as an administartor flag

Response body example#

    "setGroupAdmin": true

SetGroupAdmin errors#

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

Python request example#

import requests

url = "{{idInstance}}/setGroupAdmin/{{apiTokenInstance}}"

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

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