Unlink groups
#
Method#
/communities/unlinkPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/unlink
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptWith this API, you can remove groups from a community. To do this, you will need the ID of your community and the phone numbers of the groups you want to remove.
Attention
A community must have at least 1 group linked to it, not including the announcement group. So, if your community only has one common group linked, it will not be possible to remove it.
#
Attributes#
MandatoryAttributes | Type | Description |
---|---|---|
communityId | string | ID of the community from which groups will be unlinked |
groupsPhones | array string | Array with the phone number(s) of the groups to be unlinked |
#
OptionalAttributes | Type | Description |
---|
#
Request Body#
URLPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/unlink
#
Body#
Response#
200Attribute | Type | Description |
---|---|---|
success | boolean | true if successful, false in case of failure |
Exemplo
#
405In this case certify that you are sending the correct specification of the method. This means, verify if you sent a POST or GET as specified at the beginning of this topic.
#
415In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”