Easymailing
Groups

Update a group

PUT /audiences/{audienceUuid}/groups/{uuid}

PUT/audiences/{audienceUuid}/groups/{uuid}

Changes the title, description, colour or public flag of a group. Fields you leave out keep their value. It does not change who is in the group.

When to use: To rename or recolour a group.

When not to use: To add or remove members, use member_add_from_group, member_remove_from_group or the bulk group operations.

Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the group belongs to. Get it from list_audiences.

uuid*string

UUID of the group. Get it from list_audience_groups.

Request Body

The updated 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 PUT "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd" \  -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"}