Add users to a team
patch/api/v1/teams/{teamId}/usersAdd one or more users to a specific team by providing the team ID and the list of user IDs.
Code snippet
curl -X 'PATCH' \
'https://{yourdomain}/api/v1/teams/{teamId}/users' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": [
{
"id": 101
},
{
"id": 102
},
{
"id": 103
}
]
}'
Path parameters
| teamIdintRequired | Unique identifier of the team to which users will be added. |
Request body
| idinteger | Unique identifier of the user to add to the team. |
Example response
200 Success
{
"message": "Users added to team successfully."
}