Either messages or changes must be set.

interface SubscriptionDraft {
    changes?: ChangeSubscription[];
    destination: Destination;
    events?: EventSubscription[];
    format?: DeliveryFormat;
    key?: string;
    messages?: MessageSubscription[];
}

Properties

changes?: ChangeSubscription[]

Changes to be subscribed to.

destination: Destination

Messaging service to which the notifications are sent.

Events to be subscribed to.

Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

key?: string

User-defined unique identifier for the Subscription.

messages?: MessageSubscription[]

Messages to be subscribed to.