BixelDocs
API reference

Update a webhook endpoint

PATCH
/v1/watch/endpoints/{id}

Edit the destination URL or payload format, or re-enable a disabled endpoint with status=active (clears the failure window). Disabling is deletion or the delivery worker's sustained-failure auto-disable - never manual. Costs 0 credits.

Authorization

AuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/watch/endpoints/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "endpoint": {      "id": "string",      "url": "string",      "format": "json",      "status": "active",      "disabled_reason": "string",      "failing_since": "2019-08-24T14:15:22Z",      "secret_previous_expires_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z"    }  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z",    "count": 0,    "total": 0,    "next_cursor": "string",    "notice": "string",    "window": {      "served_from": "string",      "earliest_event_at": "string",      "events_beyond_window": true    },    "data_version": "string",    "resolved_at": "2019-08-24T14:15:22Z",    "attribution": {      "source": "Bixel",      "url": "string",      "license": "CC-BY-4.0",      "notice": "from Bixel",      "data_version": "string"    }  }}
{  "type": "http://example.com",  "title": "string",  "status": 0,  "code": "company_not_found",  "detail": "string",  "hint": "string",  "docs_url": "http://example.com"}
{  "type": "http://example.com",  "title": "string",  "status": 0,  "code": "company_not_found",  "detail": "string",  "hint": "string",  "docs_url": "http://example.com"}
{  "type": "http://example.com",  "title": "string",  "status": 0,  "code": "company_not_found",  "detail": "string",  "hint": "string",  "docs_url": "http://example.com"}