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 Name

Required

Type

Description

id

Yes

integer

User 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 Name

Required

Type

Description

login

No

string

User login using during authentication.

role

No

integer

User role. Available values:
0: Administrator role
1: Client role

status

No

integer

User 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

data

No

object

User data, a JSON object with an arbitrary structure.

password

No

string

User new password

introReviewed

No

boolean

Indicates if user reviewed an intro.

Response

If successful, this method returns an empty response body.