Change a webhook's URL, events, senders or status
PATCH
/api/v1/webhooks/{webhookId}Bearer key, test or live
Parameters
webhookIdstring · uuidpathrequiredRequest body
urlstring · urieventsarray of stringOne of: message.received, message.sent, message.delivered, message.failed, contact.opted_out, contact.opted_in
sender_idsarray of stringstatusstringOne of: active, disabled
Responses
200The webhook.404The webhook is absent or inaccessible.curl -X PATCH 'https://staging.useline.io/api/v1/webhooks/9a3d5e71-2c4b-4f8e-a6d0-7b1c3e5f9a24' \
-H "Authorization: Bearer $LINE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"status": "disabled"
}'