Updates an existing user.

Only administrators are allowed to update any property of any user. User-level accounts can only change their own password and data fields.

Request

HTTP Request

PUT /user/{id}

Parameters

Parameter NameRequiredTypeDescription
idYesintegerUser identifier. Use the 'current' keyword to update information of the current user.

Authorization

Access JSON Web Token (UpdateCurrentUser)

Request Body

In the request body, supply a User resource.

Property NameRequiredTypeDescription
loginNostringUser login using during authentication.
roleNointegerUser role. Available values:
0: Administrator role
1: Client role
statusNointegerUser status. Available values:
0: The user is active
1: The user has been locked out due to invalid login attempts
2: The user has been disabled
dataNoobjectUser data, a JSON object with an arbitrary structure.
passwordNostringUser new password
introReviewedNobooleanIndicates if user reviewed an intro.

Response

If successful, this method returns an empty response body.