Memberships
Memberships connects a User with one or more Organizations. A Membership is created when a User is added to an organization, and it becomes "inactive" when a User leaves or is removed from an Organization.
Update membership.
PUT /membership/{id}/
You can update the field role_id
and its value can be one of 'admin'
, 'superuser'
, 'user'
or 'restricteduser'
for the corresponding predefined role, or an ID of a Role.
Bulk-update memberships.
PUT /membership/
Any field that can be updated on a membership individually can also be used to bulk update multiple memberships. To issue a bulk update,
pass their comma separated ids into id__in
in _params
as shown in the example below.