POST api/2.0/authentication/setphone This function requires authentication

Description

Sets a mobile phone for the current user.

Parameters
Name Description Type Example
MobilePhone
sent in body
Mobile phone string some text
Example
POST api/2.0/authentication/setphone
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "MobilePhone": "some text"
}
Returns

Authentication data

Example Response
{
  "status": 0,
  "response": {
    "Token": "some text",
    "Expires": "2008-04-10T06-30-00.000Z",
    "Sms": true,
    "PhoneNoise": "some text",
    "Tfa": true,
    "TfaKey": "some text",
    "ConfirmUrl": "some text"
  }
}