updateSubscription

Function

update a subscription

Parameters

Parameter Type Default Notes
options Required IUpdateSubscriptionParams

Returns

Promise<ISubscription>
Property Type Notes
actions SubscriptionActions[]
active boolean
cadence Cadence
createdAt string
deliveryMethod DeliveryMethod
entityId string
entityType SubscriptionEntityType
id number
lastDelivery string
metadata ISubscriptionMetadata
notificationSpecId number
updatedAt string
userId string
notificationSpec Optional INotificationSpec
user Optional IUser

Function defined in common/src/newsletters/api/subscriptions.ts:76