Community Metadata
#
Método#
/communities-metadata/{communityId}GET
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities-metadata/{communityId}
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method returns the metadata of the community, such as its name, description, and the groups linked to it.
#
Attributes#
MandatoryAttribute | Type | Description |
---|
#
OptionalAttribute | Type | Description |
---|
#
Request Params#
URLGET
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities-metadata/{communityId}
#
Response#
200Attributes | Type | Description |
---|---|---|
name | string | Name of the community |
id | string | ID of the community |
description | string | Community description |
subGroups | array subgroup | List of linked groups |
Array (subGroups)
Attributes | Type | Description |
---|---|---|
name | string | Subgroup name |
phone | string | Subgroup phone number |
isGroupAnnouncement | boolean | Indicates whether it is an announcement group or regular group |
Example
#
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”