LineDevelopers

Change a webhook's URL, events, senders or status

PATCH/api/v1/webhooks/{webhookId}
Bearer key, test or live

Parameters

webhookIdstring · uuidpathrequired

Request body

urlstring · uri
eventsarray of string

One of: message.received, message.sent, message.delivered, message.failed, contact.opted_out, contact.opted_in

sender_idsarray of string
statusstring

One of: active, disabled

Responses

200The webhook.
404The webhook is absent or inaccessible.
Plus 400, 401, 403, 429, 503. See Errors.
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"
  }'