Add a user to a team with a specified role.
cURL
curl --request POST \ --url https://public.api.serval.com/v2/teams/{team_id}/users \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "role": "TEAM_USER_ROLE_UNSPECIFIED" } '
{ "data": { "teamId": "<string>", "userId": "<string>", "role": "TEAM_USER_ROLE_UNSPECIFIED", "createdAt": "2023-11-07T05:31:56Z", "id": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
TEAM_USER_ROLE_UNSPECIFIED
TEAM_USER_ROLE_AGENT
TEAM_USER_ROLE_MANAGER
TEAM_USER_ROLE_BUILDER
TEAM_USER_ROLE_VIEWER
TEAM_USER_ROLE_CONTRIBUTOR
Success
Show child attributes
Was this page helpful?