Membership Resource

A membership is the role someone has in a specific group or network.

Changelog

1.0.10
  • Added invitedAt property.
1.0.12
  • Added role relation (for network memberships).
1.4.3
  • Added lockedBy property.

Endpoints

Representations

JSON Properties

NameTypeDescription
EIDEIDUnique entity identifier
invitedAtdatetimeSince 1.0.10 Read-only Date the user was invited. This property may not be available for all memberships
lockedBystringSince 1.4.3 Read-only Hints the application that protects this membership from deletion
revstringnetwork or group
rolestringRole: inviteewannabeememberadmin or the EID of a user-defined role
sincedatetimeRead-only Date since this membership became active
RelationResourceDescription
groupgroupGroup (group membership only)
networknetworkNetwork (network membership only)
rolemembershipRole (network membership only)
useruserUser

Example (group membership)

{
    "_links": {
        "self": {
            "href": "https://api.speakap.io/networks/FEDCBA0987654321/memberships/1234567890ABCDEF/"
        },
        "group": {
            "href": "https://api.speakap.io/networks/FEDCBA0987654321/groups/0123456789FEDCBA/"
        },
        "user": {
            "href": "https://api.speakap.io/networks/FEDCBA0987654321/users/ABCDEF0123456789/"
        }
    },
    "EID": "1234567890ABCDEF",
    "rev": "group",
    "role": "member",
    "since": "2013-04-11T13:35:07.123+01:00",
    "invitedAt": "2013-04-10T09:11:15.123+01:00"
}