Get Started
Usage API
More information

POST api/2.0/authentication/setphone

Description

Sets a mobile phone for the user with the name specified in the request.

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": "abcde12345",
    "expires": "2021-10-26T01:24:24.7357363Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <token>abcde12345</token>
    <expires>2021-10-26T01:24:24.7357363Z</expires>
  </response>
</result>