Skip to content

Account Memberships

List of valid attributes:

AttributeDescriptionSpecifics
user_idID of the user for which to change account rolesMust be provided
role_idsList of roles the user should have on accountParameter must be provided, Can be empty

Create

Example request:

{
"data": {
"type": "account_membership",
"attributes": {
"user_id": "a484f7c0-09b9-46e6-9434-b050e5598174",
"role_ids": []
}
}
}

Example response:

{
"data": [
{
"id": "a484f7c0-09b9-46e6-9434-b050e5598174",
"type": "user",
"attributes": {
...
}
}
]
}

This endpoint adds or removes account-roles to a user.

HTTP Request

POST /api/v1/account_memberships