Skip to Content
Developers
API referenceWebhook endpoints

Update a webhook endpoint

Update a webhook endpoint. Set `status` to `enabled` to switch on an endpoint that was disabled after failing.

PATCH
/webhook-endpoints/{id}

Update a webhook endpoint. Set status to enabled to switch on an endpoint that was disabled after failing.

Authorization

http
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body

Create (POST) or update (PATCH) a webhook endpoint.

url*string
Formaturi
Lengthlength <= 2048
events*array<>
Items1 <= items
description?|
Lengthlength <= 255
include_personal_data?boolean
status?string
Value in"enabled""disabled"

Response Body

WebhookEndpointResource

application/json
  1. response
id*string
object*string
url*string
description*string|null
events*array<string>
include_personal_data*boolean
status*string
Value in"enabled""disabled"
disabled_reason*string|null
secret?string
created_at*string|null
updated_at*string|null
Example Request
curl -X PATCH 'https://api.tixxy.nl/v1/webhook-endpoints/string' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com",  "events": [    "order.created"  ]}'
Example Response
{  "id": "string",  "object": "webhook_endpoint",  "url": "string",  "description": "string",  "events": [    "string"  ],  "include_personal_data": true,  "status": "enabled",  "disabled_reason": "string",  "secret": "string",  "created_at": "string",  "updated_at": "string"}