PUT api/2.0/settings/push/docsubscribe This function requires authentication

Description

Subscribes to the Documents push notification.

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
PUT api/2.0/settings/push/docsubscribe
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"
  }
}