Create a group
POST /audiences/{audienceUuid}/groups
/audiences/{audienceUuid}/groupsCreates an empty group in an audience. Groups are labels you assign to members to target campaigns and automations.
When to use: When the user wants a new label to organise subscribers of one audience, for example interests or customer types.
When not to use: To filter members by a rule that updates by itself, create a segment with create_audience_segment. To put members in the new group, use member_add_from_group or the bulk group operations.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the audience to create the group in. If the account has several audiences, confirm with the user which one. Get it from list_audiences.
The new Group resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "description": "string", "color": "string", "public": true }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "description": "string", "suscriber_count": 0, "color": "string", "public": true, "audience": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}