Notification settings

Update a notification setting

Changed on

Updates a notification setting (notification destination) using its ID.

When updating subscribed events, send the complete list of event types that you'd like to subscribe to — including existing event types. If you omit event types, they're removed from the notification setting.

You only need to pass an event type name. Paddle responds with the full event type object for each event type.

If successful, your response includes a copy of the updated notification setting entity.

patch/notification-settings/{notification_setting_id}

Request

  • Base URL
    https://sandbox-api.paddle.com
  • Auth
    HTTP bearer

Path parameters

notification_setting_idstring required

Paddle ID of the notification setting entity (notification destination) to work with.

Request body

descriptionstring

Short description for this notification destination. Shown in the Paddle Dashboard.

destinationstring

Webhook endpoint URL or email address.

activeboolean

Whether Paddle should try to deliver events to this notification destination.

api_versioninteger

API version that returned objects for events should conform to. Must be a valid version of the Paddle API. Can't be a version older than your account default. Defaults to your account default if omitted.

include_sensitive_fieldsboolean

Whether potentially sensitive fields should be sent to this notification destination.

subscribed_eventsEventTypeName[]

Subscribed events for this notification destination. When creating or updating a notification destination, pass an array of event type names only. Paddle returns the complete event type object.

traffic_source'platform' | 'simulation' | 'all'

Whether Paddle should deliver real platform events, simulation events or both to this notification destination.

Response

The request has succeeded.

Example response

{
  "data": {
    "id": "ntfset_01gt21c5pdx9q1e4mh1xrsjjn6",
    "subscribed_events": [
      {
        "description": "The subscription.created alert is fired when a new subscription is created.",
        "group": "Subscriptions"
      }
    ]
  },
  "meta": {
    "request_id": "b15ec92e-8688-40d4-a04d-f44cbec93355"
  }
}

Changes

    • breaking

      the request property's maxLength was decreased to 256

    • breaking

      added the new path request parameter notification_setting_id

    • breaking

      request body became required

    • breaking

      added to the request property allOf list

    • breaking

      removed the enum value all of the request property

    • breaking

      removed the enum value platform of the request property

    • breaking

      removed the enum value simulation of the request property

    • breaking

      the request property type changed from string to no type

    • breaking

      the / response's property type changed from string to no type for status

    • breaking

      the /// response's property type changed from string to no type for status

    • breaking

      the / response's property type changed from string to no type for status

    • breaking

      the / response's property type changed from string to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the new api_key_exposure.created enum value to the request property /

    • info

      added the new client_token.created enum value to the request property /

    • info

      added the new client_token.revoked enum value to the request property /

    • info

      added the new client_token.updated enum value to the request property /

    • info

      added the new discount_group.created enum value to the request property /

    • info

      added the new discount_group.updated enum value to the request property /

    • info

      added to the response property allOf list for the response status

    • info

      added to the /// response property allOf list for the response status

    • info

      added to the / response property allOf list for the response status

    • info

      added to the / response property allOf list for the response status

    • info

      added to the / response property allOf list for the response status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property /// became required for the status

    • info

      the response property /// became required for the status

    • info

      the response property /// became required for the status

    • info

      the response property /// became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      removed the address.created enum value from the /// response property for the response status

    • info

      removed the address.imported enum value from the /// response property for the response status

    • info

      removed the address.updated enum value from the /// response property for the response status

    • info

      removed the adjustment.created enum value from the /// response property for the response status

    • info

      removed the adjustment.updated enum value from the /// response property for the response status

    • info

      removed the all enum value from the / response property for the response status

    • info

      removed the api_key.created enum value from the /// response property for the response status

    • info

      removed the api_key.expired enum value from the /// response property for the response status

    • info

      removed the api_key.expiring enum value from the /// response property for the response status

    • info

      removed the api_key.revoked enum value from the /// response property for the response status

    • info

      removed the api_key.updated enum value from the /// response property for the response status

    • info

      removed the business.created enum value from the /// response property for the response status

    • info

      removed the business.imported enum value from the /// response property for the response status

    • info

      removed the business.updated enum value from the /// response property for the response status

    • info

      removed the customer.created enum value from the /// response property for the response status

    • info

      removed the customer.imported enum value from the /// response property for the response status

    • info

      removed the customer.updated enum value from the /// response property for the response status

    • info

      removed the discount.created enum value from the /// response property for the response status

    • info

      removed the discount.imported enum value from the /// response property for the response status

    • info

      removed the discount.updated enum value from the /// response property for the response status

    • info

      removed the email enum value from the / response property for the response status

    • info

      removed the payment_method.deleted enum value from the /// response property for the response status

    • info

      removed the payment_method.saved enum value from the /// response property for the response status

    • info

      removed the payout.created enum value from the /// response property for the response status

    • info

      removed the payout.paid enum value from the /// response property for the response status

    • info

      removed the platform enum value from the / response property for the response status

    • info

      removed the price.created enum value from the /// response property for the response status

    • info

      removed the price.imported enum value from the /// response property for the response status

    • info

      removed the price.updated enum value from the /// response property for the response status

    • info

      removed the product.created enum value from the /// response property for the response status

    • info

      removed the product.imported enum value from the /// response property for the response status

    • info

      removed the product.updated enum value from the /// response property for the response status

    • info

      removed the report.created enum value from the /// response property for the response status

    • info

      removed the report.updated enum value from the /// response property for the response status

    • info

      removed the simulation enum value from the / response property for the response status

    • info

      removed the subscription.activated enum value from the /// response property for the response status

    • info

      removed the subscription.canceled enum value from the /// response property for the response status

    • info

      removed the subscription.created enum value from the /// response property for the response status

    • info

      removed the subscription.imported enum value from the /// response property for the response status

    • info

      removed the subscription.past_due enum value from the /// response property for the response status

    • info

      removed the subscription.paused enum value from the /// response property for the response status

    • info

      removed the subscription.resumed enum value from the /// response property for the response status

    • info

      removed the subscription.trialing enum value from the /// response property for the response status

    • info

      removed the subscription.updated enum value from the /// response property for the response status

    • info

      removed the transaction.billed enum value from the /// response property for the response status

    • info

      removed the transaction.canceled enum value from the /// response property for the response status

    • info

      removed the transaction.completed enum value from the /// response property for the response status

    • info

      removed the transaction.created enum value from the /// response property for the response status

    • info

      removed the transaction.paid enum value from the /// response property for the response status

    • info

      removed the transaction.past_due enum value from the /// response property for the response status

    • info

      removed the transaction.payment_failed enum value from the /// response property for the response status

    • info

      removed the transaction.ready enum value from the /// response property for the response status

    • info

      removed the transaction.revised enum value from the /// response property for the response status

    • info

      removed the transaction.updated enum value from the /// response property for the response status

    • info

      removed the url enum value from the / response property for the response status

    • info

      the / response's property pattern ^ntfset_[a-z\d]{26}$ was removed for the status