Remove Community Admin
#
Method#
/remove-adminPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/remove-admin
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for removing one or more administrators from a community.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
communityId | string | Community ID/Phone. Can be obtained from the List Communities API |
phones | string array | Array with the phone number(s) to be removed from the group administration |
#
Request Body#
URLPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/remove-admin
#
Body#
Response#
200Attributes | Type | Description |
---|---|---|
value | boolean | true if successful, false if failed |
Example
#
405In this case, make sure you are correctly sending the method specification, meaning check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers, mostly "application/json".
#
Webhook ResponseLink to the webhook response (upon receiving)