Skip to main content
PATCH
/
webhooks
/
{id}
Update webhook
curl --request PATCH \
  --url https://api.bundleup.io/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "events": {},
  "isEnabled": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "url": "<string>",
  "events": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "workspaceId": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token

Path Parameters

id
string
required

Webhook ID

Body

application/json
name
string

Webhook name

Required string length: 3 - 50
url
string<uri>

Webhook URL

events
object

Webhook events configuration (key-value pairs where keys are event names and values are booleans)

isEnabled
boolean

Whether webhook is enabled

Response

Webhook updated successfully

id
string
required

Unique webhook identifier

name
string
required

Webhook name

url
string<uri>
required

Webhook URL

events
object
required

Webhook events configuration

createdAt
string<date-time>

When the webhook was created

updatedAt
string<date-time>

When the webhook was last updated

workspaceId
string

ID of the workspace this webhook belongs to