Get Started
API backend
API system
More information

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 System.String
IsSubscribed
sent in body
Specifies if the user is subscribed to the push notification or not System.Boolean
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

application/json

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

text/xml

<result>
  <status>0</status>
  <response>
    <Id>1234</Id>
    <UserId>9924256A-739C-462b-AF15-E652A3B1B6EB</UserId>
    <TenantId>1234</TenantId>
    <FirebaseDeviceToken>some text</FirebaseDeviceToken>
    <Application>some text</Application>
  </response>
</result>