Skip to Content
OpenPerf

Webhooks

Update a webhook

PATCH
/api/v1/webhooks/{id}

Updates an outbound webhook. Send only the fields to change.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Path Parameters

id*string

Request Body

application/json
  1. body
url?string
Formaturi
Lengthlength <= 2048
events?array<>
Items1 <= items
enabled?boolean

Response Body

application/json
  1. response
id*string
url*string
events*array<>
enabled*boolean
consecutiveFailures*integer
lastError*string|null
lastDeliveredAt*|
Formatdate-time
createdAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.example.com/api/v1/webhooks/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "url": "string",
  "events": [
    "error.created"
  ],
  "enabled": true,
  "consecutiveFailures": 0,
  "lastError": "string",
  "lastDeliveredAt": "2019-08-24T14:15:22Z",
  "createdAt": "2019-08-24T14:15:22Z"
}