3.9 User and session control

User login

URL:

https://{{ip_addr}}/api/v1/login

HTTP method:

PUT

Response code:

Standard HTTP response code, treating syntactic errors.

Request body:
{ 
   "login":"admin",
   "password":"2n"
}

User logout

URL:

https://{{ip_addr}}/api/v1/logout

HTTP method:

PUT

Response code:

Standard HTTP response code, treating syntactic errors.

User settings

URL:

https://{{ip_addr}}/api/v1/user

HTTP method:

PUT

Request body:
{ 
   "oldPassword":"2n",
   "newPassword":"NewPass123"
}

Response code:

Standard HTTP response code, treating syntactic errors.

Request data:
{
    "data": {
        "newPassword": "NewPass123",
        "oldPassword": "2n"
    }
}