curl --request PATCH \
--url http://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"
}
}
Updates an existing user’s information in the organization. You can modify the user’s name, email, team assignment, and role. Requires proper permissions to update user details.
curl --request PATCH \
--url http://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"
}
}
UUID of the user to update
The updated user information
The body is of type object
.
User successfully updated
The response is of type object
.
Was this page helpful?