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

  • Base URL: https://yespo.io (the document declares no server; this is the origin it was published from)
  • URL: https://yespo.io/api/v1/site/webpush/domain
  • Auth: HTTP basic

Request body

domainstring required

Site for web push integration

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

OK

Changes

No recorded changes to this operation across all 1 revision of this API.