Baack

Group Membership

Browse the docs

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 MembershipCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_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 MembershipREAD_SUCCESS
    404 Not found
    returns ErrorNOT_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 MembershipUPDATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_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

Group Membership fields
FieldTypeDescription
urnstring (uuid)
emailNotificationstring

Required on create.

.

One of: SUBSCRIBED, UNSUBSCRIBED

smsNotificationstring

Required on create.

.

One of: SUBSCRIBED, UNSUBSCRIBED

identityIdentity

Required on create.Ignored on update.

.

inAppNotificationstring

Required on create.

.

One of: SUBSCRIBED, UNSUBSCRIBED

urlstring (uri)
groupGroup

Required on create.Ignored on update.

.

statusstring

Required on create.

.

One of: PENDING_ACCEPTANCE, PENDING_APPROVAL, ACTIVE, BLOCKED_BY_MEMBER, BANNED_BY_OWNER

enrollmentstring

Required on create.

.

One of: BY_MEMBER_WITH_CONSENT, BY_OWNER_WITHOUT_CONSENT

Used by: Search Item