Group | Baack docs
Group
Endpoints
CreatePOST/n/v1/group/
Endpoint for managing membership groups used for collections of identities with metadata associated with the group lifecycle. Groups can be used for general identity groups, permissions or even mailing list management as they support membership state with opt in context and opt out state
Baack allocates the URN and returns it in the response.
Request body: Group
Responses
ReadGET/n/v1/group/{urn}
Endpoint for managing membership groups used for collections of identities with metadata associated with the group lifecycle. Groups can be used for general identity groups, permissions or even mailing list management as they support membership state with opt in context and opt out state
Notes
- See groupmembership for managing membership state for specific identities
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/group/{urn}UpdatePUT/n/v1/group/{urn}
Endpoint for managing membership groups used for collections of identities with metadata associated with the group lifecycle. Groups can be used for general identity groups, permissions or even mailing list management as they support membership state with opt in context and opt out state
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Group
Responses
DeleteDELETE/n/v1/group/{urn}
Endpoint for managing membership groups used for collections of identities with metadata associated with the group lifecycle. Groups can be used for general identity groups, permissions or even mailing list management as they support membership state with opt in context and opt out state
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: GROUP
Webhook for membership group updates normally used for new group updates or name changes
Membership group events are critical for experiences like mailing list groups but can also be used for internal company groups in the case of building an intranet style product.
Listen to group creations or updates to trigger experiences like group moderation.
Note that groups have an associated content entity which is assigned on creation where the bulk of information about a group should be stored. The content entity will have its own webhook events.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| messageThreads | array of Message Thread | Ignored on update. |
| name | string | Up to 255 characters. |
| url | string (uri) | |
| entity | Entity | Ignored on update. |
Used by: Group Membership, Message Thread, Search Item