Group Membership object representation

The groupmembership object representation and fields are described below.

groupmembership was introduced in API version V1

groupmembership has not been marked for deprecation

Usages

Description

Representation of a group membership configuration. Note that the presence of a membership does not imply that the membership is active. Review the state for details of the current state. To support opt out and other negative preferences the state includes options for opt out of a group either by the member or the owner.

Example create representation

{
  "group" : {
    "urn" : "822ff206-f4f8-412e-a648-2b4fab3fea10",
    "url" : "/n/v1/group/822ff206-f4f8-412e-a648-2b4fab3fea10"
  },
  "identity" : {
    "urn" : "10615807-513a-49b5-85e4-9df44a0e1ef1",
    "url" : "/n/v1/identity/10615807-513a-49b5-85e4-9df44a0e1ef1"
  },
  "status" : "ACTIVE",
  "enrollment" : "BY_MEMBER_WITH_CONSENT",
  "emailNotification" : "SUBSCRIBED",
  "smsNotification" : "UNSUBSCRIBED",
  "inAppNotification" : "UNSUBSCRIBED"
}

Example response representation

{
  "urn" : "b4850841-7e6b-4aea-bae6-39b3a2854324",
  "url" : "/n/v1/groupmembership/b4850841-7e6b-4aea-bae6-39b3a2854324",
  "group" : {
    "urn" : "822ff206-f4f8-412e-a648-2b4fab3fea10",
    "url" : "/n/v1/group/822ff206-f4f8-412e-a648-2b4fab3fea10"
  },
  "identity" : {
    "urn" : "10615807-513a-49b5-85e4-9df44a0e1ef1",
    "url" : "/n/v1/identity/10615807-513a-49b5-85e4-9df44a0e1ef1"
  },
  "status" : "ACTIVE",
  "enrollment" : "BY_MEMBER_WITH_CONSENT",
  "emailNotification" : "SUBSCRIBED",
  "smsNotification" : "UNSUBSCRIBED",
  "inAppNotification" : "UNSUBSCRIBED"
}

Fields

NameTypeDescriptionConstraints
urnString representation of a Unique Resource Name. Typically a UUID with 36 characters.The URN for the membership configuration
urlURL represented as a stringThe URL for accessing this membership configuration
groupgroupThe membership group this subscription configuration is associated withRequired on create. Ignored on update.
identityidentityThe identity this group membership configuration is provided forRequired on create. Ignored on update.
statusA string representation of a enumeration name restricted to the documented valuesThe state of the membershipRequired on create.

Allowed values:

  • PENDING_ACCEPTANCE
  • PENDING_APPROVAL
  • ACTIVE
  • BLOCKED_BY_MEMBER
  • BANNED_BY_OWNER
  • UNRECOGNIZED
enrollmentA string representation of a enumeration name restricted to the documented valuesThe enrollment criteria actor. This field is intended to be used for compliance reporting to record that a member was enrolled in a group by their own consent for compliance reasons. This may be of importance when connecting to email or other communications channel where explicit consent must be recorded for compliance.Required on create.

Allowed values:

  • BY_MEMBER_WITH_CONSENT
  • BY_OWNER_WITHOUT_CONSENT
  • UNRECOGNIZED
emailNotificationA string representation of a enumeration name restricted to the documented valuesEmail notification preference for group notificationsRequired on create.

Allowed values:

  • SUBSCRIBED
  • UNSUBSCRIBED
  • UNRECOGNIZED
smsNotificationA string representation of a enumeration name restricted to the documented valuesSMS notification preference for group notificationsRequired on create.

Allowed values:

  • SUBSCRIBED
  • UNSUBSCRIBED
  • UNRECOGNIZED
inAppNotificationA string representation of a enumeration name restricted to the documented valuesIn APP notification preference for group notificationsRequired on create.

Allowed values:

  • SUBSCRIBED
  • UNSUBSCRIBED
  • UNRECOGNIZED