Viewrium Docs
HTTP referenceWebhooks

Update a webhook endpoint

PATCH/v1/webhooks/{id}

Changes the endpoint's URL, events, description or whether it is enabled. 404 for an endpoint you cannot see.

Path Parameters

id*Id

The webhook endpoint's id.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The endpoint fields to change; a field you leave out keeps its value.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "url": "string",  "description": "string",  "events": [    "model.ready"  ],  "enabled": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}