Deactivate Community
Method
#
/queueDELETE
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/{communityId}
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for deactivating a community.
When a community is deactivated, it will result in the disconnection of all groups related to it. It is important to note that deactivating the Community will not delete its groups but will remove them from the Community in question.
#
Attributes#
MandatoryAttributes | Type | Description |
---|---|---|
#
OptionalAttributes | Type | Description |
---|---|---|
#
Request Params#
Example URLMethod
DELETE
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/{CommunityID}
#
Response#
200#
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”
#
Webhook ResponseLink para a response do webhook (ao receber)