Notifications

Update subscription for an event

Changed on

Update a user scoped subscription for an event. A user subscription accepts the IN_APP and EMAIL channels only. A request with another channel answers 400.

patch/v1/notifications/configurations/{eventId}/subscriptions/{subscriptionId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

eventId, string required
Example:invoice-ready

Formatted string ID of the notification event.

subscriptionId, string required

Subscription ID of the user configuration.

Request body

EventSubscription required

Properties associated with an event subscription.

regions, NotificationRegion[] required
entities, string[] required
channels, NotificationChannel[] required
enabled, boolean required

Enable/Disable complete subscription within an event.

name, string required

User provided name of the subscription.

Response

Response containing specific subscription details associated with an event.

EventSubscriptionResponse required

Properties associated with an event subscription.

id, string uuid required

Contains a unique identifier used for this resource.

entity_type, 'billing-invoice' | 'access-token' | 'webhook' | 'dev-portal' | 'dataplane-group' | 'dataplane' | 'kai-enablement' | 'enterprise-trial' required
created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

regions, NotificationRegion[] required
entities, string[] required
channels, NotificationChannel[] required
enabled, boolean required

Enable/Disable complete subscription within an event.

name, string required

User provided name of the subscription.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status