Xsolla-logo

Update user phone numberClient-side

post/users/me/phone

Updates the phone number of the authenticated user by JWT.

The phone number in this call is used only for passing the two-factor authentication.

SecurityBearer
Request
Request Body schema: application/json
phone_number
required
string^\+(\d){5,25}$

Updated user phone number according to national conventions.

Responses
204

No Content

400

Bad Request

401

Forbidden

404

Not Found

422

(Unprocessable Entity) Semantic errors in the request

Request samples
application/json
{
  • "phone_number": "+79091091076"
}
Response samples
application/json
{
  • "error": {
    }
}