POST api/2.0/authentication/setphone
Sets a mobile phone for the current user.
Name |
Description |
Type |
Example |
MobilePhone
sent in body
|
Mobile phone
|
System.String
|
|
POST api/2.0/authentication/setphone
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"MobilePhone": "some text"
}
application/json
{
"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"
}
}
text/xml
<result>
<status>0</status>
<response>
<Token>some text</Token>
<Expires>2008-04-10T06-30-00.000Z</Expires>
<Sms>True</Sms>
<PhoneNoise>some text</PhoneNoise>
<Tfa>True</Tfa>
<TfaKey>some text</TfaKey>
<ConfirmUrl>some text</ConfirmUrl>
</response>
</result>