Median

PATCH /webhooks/{id}

Updated Oct 1, 20261 minute read

Update a webhook

Change the URL, the events, or both. Deliveries already booked keep the body they were given.

Part of Webhooks.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Request body

application/json, required.

FieldTypeRequiredDescription
urlstringNo
events"message.created" | "conversation.created" | "conversation.updated" | "bug.created" | "suggestion.created" | "signal.updated" | "knowledge.suggestion.created"[]No

Responses

StatusDescription
200Done.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
okbooleanNo

Example response

{
  "ok": true
}

Example request

curl -X PATCH https://api.median.sh/v1/webhooks/id \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc