Group Membership | Baack docs
Group Membership
Endpoints
CreatePOST/n/v1/groupmembership/
Endpoint for managing group membership for specific identities including opt in and out support
Baack allocates the URN and returns it in the response.
Request body: Group Membership
Responses
- 201 Created
- returns Group Membership
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/groupmembership/{urn}
Endpoint for managing group membership for specific identities including opt in and out support
Notes
- Many group subscription contexts require explicit opt out configuration. For this use the state of the subscription to indicate the opt out state rather than deleting the membership
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Group Membership
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/groupmembership/{urn}UpdatePUT/n/v1/groupmembership/{urn}
Endpoint for managing group membership for specific identities including opt in and out support
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Group Membership
Responses
- 202
- returns Group Membership
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/groupmembership/{urn}
Endpoint for managing group membership for specific identities including opt in and out support
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_MEMBERSHIP
Webhook for events related to membership of a group for an identity.
Group membership is managed by creating a group membership for a given identity. Group membership includes a rich model for membership notifications as well as a full lifecycle state which can be used to capture opt in as with mailing list groups. Group membership can also include negative states like banning a specific identity from the group.
Monitor group membership to enforce custom policy logic for group membership or monitoring changes like when an internal user accepts a group invitation.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| emailNotification | string | Required on create. . One of: |
| smsNotification | string | Required on create. . One of: |
| identity | Identity | Required on create.Ignored on update. . |
| inAppNotification | string | Required on create. . One of: |
| url | string (uri) | |
| group | Group | Required on create.Ignored on update. . |
| status | string | Required on create. . One of: |
| enrollment | string | Required on create. . One of: |
Used by: Search Item