Skip to main content
PATCH
/
webhooks
/
{webhook_id}
Update Webhook Endpoint
curl --request PATCH \
  --url http://localhost:8080/webhooks/{webhook_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "secret": "<string>",
  "description": "<string>",
  "is_active": true
}
'
{
  "id": 123,
  "name": "<string>",
  "url": "<string>",
  "event_type": "<string>",
  "is_active": true,
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "last_triggered_at": "2023-11-07T05:31:56Z",
  "failure_count": 123,
  "success_count": 123
}

Path Parameters

webhook_id
integer
required

Body

application/json
name
string | null
Required string length: 1 - 255
url
string | null
Minimum string length: 1
secret
string | null
Maximum string length: 128
description
string | null
is_active
boolean | null

Response

Successful Response

id
integer
required
name
string
required
url
string
required
event_type
string
required
is_active
boolean
required
description
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
last_triggered_at
string<date-time> | null
required
failure_count
integer
required
success_count
integer
required