BoldSales

API Documentation

Update a user in a team

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

Update a specific user's properties within a team by providing the team ID, user ID, and the updated user information.

Code snippet

curl -X 'PATCH' \
'https://{yourdomain}/api/v1/teams/{teamId}/users/{userId}' \
-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": {
    "canIncludeInAutoAssignment": true
  }
}'

Path parameters

teamIdintRequiredUnique identifier of the team containing the user to be updated.
userIdintRequiredUnique identifier of the user to be updated within the team.

Request body

canIncludeInAutoAssignmentbooleanDetermines whether the user can be automatically assigned to records within this team. Set to true to enable automatic assignment or false to disable it.

Example response

200 Success

{
  "message": "User updated in the team successfully."
}