Update Subscription

PUT https://{{axpAPIDomain}}/api/digital/webhook/v1/accounts/:accountId/subscriptions/:subscriptionId

Replaces an existing webhook subscription. The client application can modify the callbackUrl and/or the event types for which it receives notifications within the context of this subscription.

Request Body

{"subscriptionId"=>"{{digitalSubscriptionId}}", "channelProviderId"=>"{{digitalChannelProviderId}}", "callbackUrl"=>"{{digitalCallbackURL}}", "eventTypes"=>["ALL"]}

HEADERS

KeyDatatypeRequiredDescription
appkeystring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"subscriptionId":"2581e39b-fe84-4e38-87f4-63a1d037f39a","channelProviderId":"ChatProvider01","callbackUrl":"https://www.example.com/send/callback/here/instead","eventTypes":["ALL"]}