title | description | last_updated | template |
---|---|---|---|
Glue API: Add push notification providers |
Learn how to add push notification providers using Glue API |
Dec 23, 2023 |
glue-api-storefront-guide-template |
This endpoint lets you add push notification providers to further subscribe to notifications.
Install the Push Notification feature
POST
{% raw %}{{backend_url}}{% endraw %}/push-notification-providers
PATH | DESCRIPTION |
---|---|
{% raw %}{{backend_url}}{% endraw %} | URL of your Backend Glue API. |
HEADER KEY | HEADER VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
Authorization | string | ✓ | Alphanumeric string that authorizes the Back Office user to send requests to protected resources. Get it by authenticating as a Back Office user. |
Request sample: POST https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers
{
"data": {
"type": "push-notificatoin-providers",
"attributes": {
"name": "Fulfillment App provider"
}
}
}
{% include pbc/all/glue-api-guides/{{page.version}}/push-notification-providers-request-attributes.md %}
Response sample:
{
"data": {
"type": "push-notification-providers",
"id": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
"attributes": {
"uuid": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
"name": "Fulfillment App provider"
},
"links": {
"self": "https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers/ffb5875e-00d3-5436-ae67-08b7c9837f3e"
}
}
}
{% include pbc/all/glue-api-guides/{{page.version}}/push-notification-providers-response-attributes.md %}
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.