Save the Documents Firebase device token

POST /api/2.0/settings/push/docregisterdevice

Request

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

Authorization

An API key is a token that you provide when making API calls. Include the token in a cookie parameter called asc_auth_key.

Example: asc_auth_key=864FE52C-1C1C-469F-9308-51DAFEFE7436.

Headers

Acceptenum of string

Can be one of: application/json, text/json, text/plain.

Content-Typeenum of string

Can be one of: application/json, application/*+json, text/json.

Body

Firebase request parameters

firebaseDeviceTokenstring

Firebase device token

isSubscribedboolean

Specifies if the user is subscribed to the push notification or not

Examples

POST /api/2.0/settings/push/docregisterdevice HTTP/1.1
Accept: application/json
Content-Length: 64
Content-Type: application/json
Host: example.com

{
  "firebaseDeviceToken": "some text",
  "isSubscribed": true
}
curl --request POST \
  --url https://example.com/api/2.0/settings/push/docregisterdevice \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "firebaseDeviceToken": "some text",
  "isSubscribed": true
}'

Responses

200

FireBase user

idintegerformat: int32

ID

userIdstringformat: uuid

User ID

tenantIdintegerformat: int32

Tenant ID

firebaseDeviceTokenstring

Firebase device token

applicationstring

Application

isSubscribedboolean

Specifies if the user is subscribed to the push notifications or not

tenantobject
idintegerformat: int32

Id

namestring

Name

aliasstring

Alias

mappedDomainstring

Mapped domain

versionintegerformat: int32

Version

version_Changedstringformat: date-time

Version_changed

versionChangedstringformat: date-time

Version changed

languagestring

Language

timeZonestring

Time zone

trustedDomainsRawstring

Trusted domains raw

trustedDomainsEnabledone of
.enum of string

[None - None, Custom - Custom, All - All]

Can be one of: None, Custom, All.

.enum of integer

[0 - None, 1 - Custom, 2 - All]

Can be one of: 0, 1, 2.

statusone of
.enum of string

[Active - Active, Suspended - Suspended, RemovePending - Remove pending, Transfering - Transfering, Restoring - Restoring, Migrating - Migrating, Encryption - Encryption]

Can be one of: Active, Suspended, RemovePending, Transfering, Restoring, Migrating, Encryption.

.enum of integer

[0 - Active, 1 - Suspended, 2 - Remove pending, 3 - Transfering, 4 - Restoring, 5 - Migrating, 6 - Encryption]

Can be one of: 0, 1, 2, 3, 4, 5, 6.

statusChangedstringformat: date-time

Status changed

statusChangedHackstringformat: date-time

Status changed hack

creationDateTimestringformat: date-time

Creation date time

ownerIdstringformat: uuid

Owner id

paymentIdstring

Payment id

industryone of
.enum of string

[Other - Other, Accounting - Accounting, AdvertisingMarketingPR - Advertising marketing PR, Banking - Banking, Consulting - Consulting, Design - Design, Education - Education, Environment - Environment, FinancialServices - Financial services, HealthCare - Health care, IT - IT, Legal - Legal, Manufacturing - Manufacturing, PublicSector - Public sector, Publishing - Publishing, RetailSales - Retail sales, Telecommunications - Telecommunications]

Can be one of: Other, Accounting, AdvertisingMarketingPR, Banking, Consulting, Design, Education, Environment, FinancialServices, HealthCare, IT, Legal, Manufacturing, PublicSector, Publishing, RetailSales, Telecommunications.

.enum of integer

[0 - Other, 1 - Accounting, 2 - Advertising marketing PR, 3 - Banking, 4 - Consulting, 5 - Design, 6 - Education, 7 - Environment, 8 - Financial services, 9 - Health care, 10 - IT, 11 - Legal, 12 - Manufacturing, 13 - Public sector, 14 - Publishing, 15 - Retail sales, 16 - Telecommunications]

Can be one of: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16.

lastModifiedstringformat: date-time

Last modified

callsboolean

Calls

partnerobject
tenantIdintegerformat: int32

Tenant id

partnerIdstring

Partner id

affiliateIdstring

Affiliate id

campaignstring

Campaign

401

Unauthorized

Get Help

  • If you have any questions about ONLYOFFICE DocSpace, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).