Update user

Update a complete user record by its user ID.

Method PUT
URL v1/user/{siteId}/{userId}

Note: You cannot use this endpoint to update a user's username.

Generate the request payload for this API call

  1. Call the GET endpoint with the userId of the user to update.

  2. Modify the writable User model parameters (except username and password) in this GET endpoint’s response object, as needed. This is described in Get user.

  3. Use the modified response as the value for changedRecord in the request payload for the Update API call.

Request parameters

Parameter

Type

Description

Required

body

(body)

UserWithChangeReason

Body containing change reason and updated user data.

 

yes

siteId

(path)

integer

Site ID. Unique identifier assigned during client-account creation in Nuance Portal.

yes

userId

(path)

integer

User ID.

yes

UserWithChangeReason model

Parameter

Type

Description

Required

changedRecord

User

Writable properties of the User model.

yes

reason

string

Reason of changes.

Maximum length: 512 characters.

yes

Response codes

Status

Content

204

Request succeeded, and there is no content to send in the response.

400

Bad request. The server cannot process the request due to a client error.

404

The server cannot find the requested user. This user may not exist.

422

The request was well-formed, but there were validation errors, so it could not be followed.

For a full list of supported response codes for UMAPI, see Response codes.

Samples

Note: Authentication is required to try out samples. For details, see API token authentication.