v1

latestOpenAPI 3.0.12026-07-249297145.2 KB
Site

Add one web push domain

The method is used for adding one domain for web push notifications.

post/api/v1/site/webpush/domain

Request body

domainstring required

Site for web push integration (HTTPS only).

serviceWorkerNamestring required

Web push service worker file name, in *.js format

serviceWorkerPathstring required

Relative path on site, where service worker will be stored. Must start and end with slash

serviceWorkerScopestring required

Relative path on site, where service worker will work. Usually is the same as serviceWorkerPath

Response

Domain is created/already registered in this organization