Creates a request to change the login and sends a confirmation link to the new email address. The current email remains active until the user follows the link; the link is valid for 24 hours. A user can have only one active request: a repeated call overwrites the previous one and invalidates its link. Errors: 332 — the address matches the current one, 111 — the address is already in use, 333 — the email has already been sent, please try again later.
Authorization
api-token + language + role
Request body application/json
object
emailstringrequired
Example:new@fs.pro
Responses
OK
object
statusstringrequired
Values:successerror
Example:success
dataobject
descriptionstring
Example:Successfully saved
email_confirmationobject
A request has been created — the interface displays a pending state with a cancel button