Skip to main content
PATCH
/
organizations
/
users
/
{userId}
Update User
curl --request PATCH \
  --url https://api.attention.tech/v2/organizations/users/{userId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstName": "John",
  "lastName": "Doe",
  "password": "newPassword123",
  "botName": "JohnBot4",
  "dealsEnabled": false,
  "teamUUIDsToRemove": [
    "802a13d8-1ad0-4f4a-b880-9ace889fafa61"
  ],
  "teamsToAdd": [
    {
      "uuid": "fe515723-fe2e-4959-a5fa-c4d3937fe7e4",
      "primary": true
    },
    {
      "uuid": "802a13d8-1ad0-4f4a-b880-9ace889fafa6",
      "primary": false
    }
  ],
  "roleUUID": "84e67f54-5157-442b-a2b3-8b9c728b2fef1"
}'
{
  "data": {
    "botName": "John's Notetaker",
    "email": "15john.doe@example.com",
    "firstName": "John",
    "lastName": "Doe",
    "primaryTeamUUID": "fe515723-fe2e-4959-a5fa-c4d3937fe7e4",
    "roles": [
      {
        "name": "Sales Rep",
        "type": "SALES_REP",
        "uuid": "55906d03-2849-4c3c-a67f-da07a6300de4"
      }
    ],
    "settings": {
      "autoCalculateCRMFields": true,
      "joinWhenIAmHostAndAlone": true,
      "joinWhenIAmHostWithPeers": true,
      "joinWhenUnlicensedPeerIsHost": true,
      "realTimeCapabilitiesOFF": true
    },
    "transcriptLang": "en",
    "uuid": "c74eb7bc-7b0e-45e2-843a-67305bfc4dce"
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

userId
string
required

UUID of the user to update

Body

The updated user information

firstName
string
lastName
string
password
string
botName
string
dealsEnabled
boolean
teamUUIDsToRemove
string[]
teamsToAdd
object[]
roleUUID
string

The UUID of the role assigned to the user.

Response

User successfully updated

data
object