BoldSales

API Documentation

Add users to a team

patch/api/v1/teams/{teamId}/users

Add 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

teamIdintRequiredUnique identifier of the team to which users will be added.

Request body

idintegerUnique identifier of the user to add to the team.

Example response

200 Success

{
  "message": "Users added to team successfully."
}