POST api/2.0/settings/push/docregisterdevice This function requires authentication

Description

Saves the Firebase device token specified in the request for the Documents application.

Parameters
Name Description Type Example
FirebaseDeviceToken
sent in body
Firebase device token string some text
IsSubscribed
sent in body
Specifies if the user is subscribed to the push notification or not Bool value true
Example
POST api/2.0/settings/push/docregisterdevice
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "FirebaseDeviceToken": "some text",
  "IsSubscribed": true
}
Returns

FireBase user

Example Response
{
  "status": 0,
  "response": {
    "Id": 1234,
    "UserId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
    "TenantId": 1234,
    "FirebaseDeviceToken": "some text",
    "Application": "some text"
  }
}