Subscribes to the Documents push notification.
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 |
PUT api/2.0/settings/push/docsubscribe Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "FirebaseDeviceToken": "some text", "IsSubscribed": true }
Firebase user
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>