POST /user-management-v2/users/{userId}/confirm-password
FROM API REVISION 6.0
This resource is used to confirm a user's password.
You can confirm a user's password by sending the password
encoded in Base64.
If the password is valid, you will receive the success response true
, otherwise it will be false
.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
The Content-Length entity-header field indicates the size of the entity-body.
Object Name: User
Property Name | Type | Description | Method |
---|---|---|---|
Id | Integer | This property is the user's ID | GET |
Username | String | This property is the user's login. 3 to 16 characters. |
GET POST PUT |
WelcomePage | String | This property is the user's welcome page. When a user logs into the controller, the first page they will see can be set so they do not have to navigate to that page every time they connect to the controller. The URL is everything after the Port number. |
GET POST PUT |
PasswordReset | Boolean | This property is used to indicate if the user need to reset his password.
|
GET POST PUT |
Roles | Array<Role> | This object is an array of Role object. It will contain all the user's role. During a POST/PUT request, to edit user's roles or create a new user, you have to send an array of string : Example : ["Admin", "BleRoomDevices_Admin"] |
GET POST PUT |
Password | String | This is the user's password. This value can be used for a POST (create or edit a user) or PUT (edit a user). It will not be displayed with a GET. SHOULD be encoded in Base64. |
POST PUT |
Object Name: ConfirmPasswordResponse
propertyName | type | description |
---|---|---|
Success | Boolean | This property is true if the test was a success, false otherwise. |
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1/confirm-password
{
"password": "U3VwZXJNYXJpbw=="
}
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1/confirm-password
<?xml version="1.0" encoding="utf-8"?>
<User>
<Password>U3VwZXJNYXJpbw==</Password>
</User>
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1/confirm-password
{
"password": "U3VwZXJNYXJpbw=="
}
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1/confirm-password
<?xml version="1.0" encoding="utf-8"?>
<User>
<Password>U3VwZXJNYXJpbw==</Password>
</User>