Org Configurations

Update an org subscription

Changed on

Update the details of an org scoped subscription. Only available to organization administrators.

patch/v1/notifications/configurations/organization/{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 uuid required

ID of the org subscription, a UUID v7.

Request body

OrgSubscriptionUpdatePayload required

Properties of an org subscription to update. Include only the properties that you want to change. A property that you do not include keeps its current value. A property that you include replaces the current value.

destination_ids, string[]

IDs of 1 to 50 HTTP destinations that receive this event. Each ID must be unique. This list replaces the current destinations.

regions, NotificationRegion[]

Regions for which notifications are sent. Use * for all regions. This replaces the current regions.

entities, string[]

Entity IDs for which notifications are sent. Use * for all entities. This replaces the current entities.

enabled, boolean

Set to false to pause the subscription without deleting it.

name, string

Name that identifies the subscription.

Response

A single org subscription.

OrgSubscription required

Subscription that sends an organization event to one or more destinations for the selected regions and entities.

id, string uuid required

UUID v7 identifier of the subscription.

name, string required

Name that identifies the subscription.

event_type, string required

Event type sent by this subscription.

destination_ids, string[] required

IDs of the HTTP destinations that receive this event. Deleting a destination removes its ID from this list. The subscription is deleted if no destinations remain.

regions, NotificationRegion[] required

Regions for which this subscription sends notifications. * represents all regions.

entities, string[] required

Entity IDs for which this subscription sends notifications. * represents all entities.

enabled, boolean required

Indicates whether this subscription sends notifications.

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.

Example response

{
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes