insert
Creates new user
Request
HTTP Request
POST /user
Authorization
Access JSON Web Token (ManageUser)
Request Body
In the request body, supply a User resource.
Property Name | Required | Type | Description |
---|---|---|---|
login | Yes | string | User login using during authentication. |
role | Yes | integer | User role. Available values: 0: Administrator role 1: Client role |
status | Yes | 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 |
password | Yes | string | User password |
oldPassword | Yes | string | User old password. Required for non-admin users. |
data | Yes | object | User data, a JSON object with an arbitrary structure. |
Response
If successful, this method returns a User resource in the response body.
Property Name | Type | Description |
---|---|---|
id | integer | User identifier. |
lastLogin | datetime | User last login timestamp (UTC). |
data | object | User data, a JSON object with an arbitrary structure. |
introReviewed | boolean | Indicates if user reviewed an intro. |
Updated almost 7 years ago