Create or Update Web Push Opt-in
Creates or updates the tenant's web push opt-in prompt configuration. The opt-in prompt is the UI shown to browser visitors asking them to subscribe to push notifications. A tenant has at most one opt-in configuration; posting replaces the existing one.
Use Get Web Push Opt-in to read the current configuration.
{
"title": "Get updates from Example",
"body": "We'll send you notifications for new posts and offers.",
"logo": "https://cdn.example.com/logo.png",
"serviceworker_url": "https://www.example.com/sw.js",
"placement": 0
}
Title displayed on the opt-in prompt.
Body text displayed on the opt-in prompt.
URL of the logo shown on the opt-in prompt.
URL of the service worker script used to register the browser subscription.
Placement of the prompt. 0 = TopRight, 10 = TopLeft, 20 = TopCenter.
{
"Status": true,
"Message": "",
"Response": {}
}