Glue API: Update push notification providers

Edit on GitHub

This endpoint lets you update push notification providers.

Installation

Install the Push Notification feature

Retrieve push notification providers


PATCH {{backend_url}}/push-notification-providers/{{push_notification_provider_id}}**


PATH DESCRIPTION
{{backend_url}} URL of your Backend Glue API.
{{push_notification_provider_id}} ID of a push notification provider to update.

Request

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: PATCH https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers/ffb5875e-00d3-5436-ae67-08b7c9837f3e

{
  "data": {
    "type": "push-notificatoin-providers",
    "attributes": {
      "name": "FA provider"
    }
  }
}
ATTRIBUTE TYPE REQUIRED DESCRIPTION
name Boolean This name is used when subscribing to notifications.

Response

Response sample:

{
    "data": {
        "type": "push-notification-providers",
        "id": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
        "attributes": {
            "uuid": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
            "name": "FA provider"
        },
        "links": {
            "self": "https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers/ffb5875e-00d3-5436-ae67-08b7c9837f3e"
        }
    }
}
RESOURCE ATTRIBUTE TYPE DESCRIPTION
push-notification-providers uuid String Unique identifier of the provider. It’s used to retrieve or update a provider.
push-notification-providers name String This name is used when subscribing to notifications.

Possible errors

CODE REASON
5001 The push notification provider with the specified ID doesn’t exist.

To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.