API

Request email change

POST/api/crm/v2/profile.request_email_changev2
operationId: profile.requestEmailChange

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

emailstring

Example: new@fs.pro

date_creationstring (DataTimeFormatSQL)

Example: 2024-05-02 08:31:16

date_expirationstring (DataTimeFormatSQL)

Example: 2024-05-02 08:31:16