Community settings
#
Method#
/communities/settingsPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/settings
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptWith this API, you can change the settings of a community.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
communityId | string | ID of the community whose settings will be changed |
whoCanAddNewGroups | string ("admins" or "all") | Configuration for who can add new groups to this community. Only admins or everyone |
#
Request Body#
URLPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities/settings
#
Body#
Response#
200Attributes | Type | Description |
---|---|---|
success | boolean | true if successful, false if failed |
Example
#
405In this case, ensure that you are correctly sending the method specification, i.e., verify if you sent POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, ensure to add the "Content-Type" header to the request object you are sending, which in most cases is "application/json".