Users

Request login change for loggedin user. It sends an email or SMS (depends on login type) with a pin code to current login.

POST request change login

Endpoint

POST /api/v1/users/request_change_login

Parameters

Name Description
user[login] required Email or Phone number to change

Request

Route

POST /api/v1/users/request_change_login

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTM2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE2LCJleHAiOjE3NjYyMTg0MTYsImp0aSI6IjRjMjRlNzRjLTQxYTEtNDIxMC05YzJiLTg0MjI1NjEyNTA2MCJ9.N-2uJIePLFpeR0iq3XRrMPWW-fudX1ETITL5_GPyYjw
Host: example.org
Cookie: 

Body

{
  "user": {
    "login": "stepanie.pfeffer+operator@example.com"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"9df9d5fd92b0a511df7d4b8799f0a715"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2c76125c-e4e2-4521-9485-342f9922f1e8
x-runtime: 0.015076
content-length: 261

Body

{
  "user": {
    "id": 1936,
    "company": null,
    "contact_phone_number": null,
    "email": "stepanie.pfeffer+operator@example.com",
    "financial_company_id": null,
    "first_name": "Stepanie",
    "job_position": null,
    "last_name": "Pfeffer",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}