Update
Update event subscription
patch/v1/event_subscriptions/{event_subscription_token}
Update an event subscription.
Path Parameters
event_subscription_tokenstring
Body Parameters
urlstring
URL to which event webhooks will be sent. URL must be a valid HTTPS address.
formaturi
descriptionstring
optional
Event subscription description.
disabledboolean
optional
Whether the event subscription is active (false) or inactive (true).
event_typesarray of enum
optional
Indicates types of events that will be sent to this subscription. If left blank, all types will be sent.
Returns
tokenstringdescriptionstringdisabledbooleanurlstringevent_typesarray of enumEventSubscription
Request example Request
curl https://api.lithic.com/v1/event_subscriptions/$EVENT_SUBSCRIPTION_TOKEN \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: $LITHIC_API_KEY" \
-d '{
"url": "https://example.com"
}'
200 Example
{
"token": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga1",
"description": "description",
"disabled": true,
"url": "https://example.com",
"event_types": [
"account_holder.created"
]
}