Update a topic subscription
Update a subscription by its unique identifier subscriptionIdOrIdentifier for a topic. You can update the preferences and name associated with the subscription.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequirednamestringThe name of the subscription
preferencesarray<string | object | object>The preferences of the topic. Can be a simple workflow ID string, workflow preference object, or group filter object
Path Parameters
topicKeyRequiredstringThe key identifier of the topic
subscriptionIdOrIdentifierRequiredstringThe unique identifier of the subscription
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
_idRequiredstringThe unique identifier of the subscription
identifierstringThe identifier of the subscription
namestringThe name of the subscription
topicRequiredobjectThe topic information
subscriberRequiredobjectThe subscriber information
preferencesarray<object>The preferences for workflows in this subscription
createdAtRequiredstringThe creation date of the subscription
updatedAtRequiredstringThe last update date of the subscription