Get Started
Portal api methods
Help

POST api/2.0/authentication/setphone

Description

Set mobile phone for user

Parameters
Name Description Type Example
userName
sent in body
user name or email string some text
password
sent in body
password string some text
provider
sent in body
social media provider type string some text
accessToken
sent in body
provider token string some text
mobilePhone
sent in body
new mobile phone string some text
Example
POST api/2.0/authentication/setphone
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "userName": "some text",
  "password": "some text",
  "provider": "some text",
  "accessToken": "some text",
  "mobilePhone": "some text"
}
Returns

mobile phone

Example Response

application/json

{
  "status": 0,
  "response": {
    "token": "sdjhfskjdhkqy739459234",
    "expires": "2019-08-17T20:39:00.9147737Z",
    "sms": false,
    "phoneNoise": ""
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <token>sdjhfskjdhkqy739459234</token>
    <expires>2019-08-17T20:39:00.9147737Z</expires>
    <sms>false</sms>
    <phoneNoise></phoneNoise>
  </response>
</result>