Name | Description |
---|---|
session[login] | Username |
session[password] | Password |
Accept: application/json Content-Type: application/json
POST /rest/v2/login
{ "session": { "login": "rest_auth_test", "password": "bad_password" } }
Content-Type: application/json; charset=utf-8
401 Unauthorized
{ "error": "Неверный пользователь или пароль" }