[POST] .../v1/user/checklogin
Checks login availability. Use this method before User/Add or User/Edit to check whether a login can be assigned to a user. The response returns enable=true when the login is not used by another active user and false when it is already occupied; the method validates the same login shape used by write operations and checks the current request user's user get permission. The request body is required, login must be 3-15 Latin letters, digits or underscore and the value is trimmed and escaped before lookup. Missing body, missing login, invalid login length or characters, denied permission and persistent lookup failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| login | String | Required | User login for the system. The controller requires 3-15 Latin letters, digits or underscore. |
Request Example
{
"login": "ivanov"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | UserCheckLoginOut | Result object. |
Response Example
{
"ok": true,
"result": {
"enable": true
}
}