Skip to content

Team Memberships

List of valid attributes:

AttributeDescriptionSpecifics
team_idID of the team to add users toMust be provided
user_idID of the user to add to the teamMust be provided
role_idsList of roles the user should have in teamParameter must be provided, Can be empty

Create

Example request:

{
"data": {
"type": "team_membership",
"attributes": {
"team_id": "de9c0396-3ac7-4965-9c14-7f0e15af47d9",
"user_id": "412cc746-4ace-484a-95f3-f49951ab182f",
"role_ids": []
}
}
}

Example response:

{
"data": [
{
"id": "412cc746-4ace-484a-95f3-f49951ab182f",
"type": "user",
"attributes": {
...
}
}
]
}

This endpoint connects a user and a team through roles.

HTTP Request

POST /api/v1/team_memberships