Team Memberships
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
List of valid attributes:
| Attribute | Description | Specifics |
|---|---|---|
| team_id | ID of the team to add users to | Must be provided |
| user_id | ID of the user to add to the team | Must be provided |
| role_ids | List of roles the user should have in team | Parameter 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