Change a membership
Change the role or the dates of one membership. Giving a left_on is how somebody leaves a group.
Every field is optional. A field you leave out keeps its value, and a role or a date sent as null is cleared. A precision left out keeps the one the date had, or day when the date had none.
A left_on before joined_on answers 422 on left_on, saying somebody cannot leave a group before they joined it. Clearing left_on while the same person already holds another membership of the group today answers 422 on left_on, saying they are already in this group.
Groups are not yet available to every account. Until they are available to yours, every endpoint here answers 404.
Parameters
Sent as JSON. Anything not listed here is ignored.
The vault the groups live in, named either by the readable name it reports as slug or by its id.
The id of the group. One addressed through the wrong vault, or belonging to another account, answers 404.
The id of the membership. One addressed through another group answers 404.
What the person is in the group, in your own words, up to 255 characters.
When the person joined, written as a year, a month and a day.
How much of joined_on is known: day, month, year, decade or unknown.
When the person left, written as a year, a month and a day. A date before joined_on answers 422.
How much of left_on is known: day, month, year, decade or unknown.
Returns
The membership object as it stands now.
The membership.
Always group_membership. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
The group the membership is in.
The id of the group.
What the group is called.
The person the membership is about.
The id of the contact.
The readable name of the contact, which addresses it as well as its id.
The name of the contact, as it is shown.
What the person is in the group, in their own words, or null.
When the person joined, written as a year, a month and a day, or null.
How much of the date is known: day, month, year or decade. Always unknown when there is no date.
When the person left, written as a year, a month and a day, or null while they are still in the group.
How much of the date is known: day, month, year or decade. Always unknown when there is no date.
True while the person is in the group, which is while left_on is null.
When the membership was recorded, as a count of seconds since 1970.
When it last changed, as a count of seconds since 1970, or null.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.