Update a webhook endpoint
curl --request PATCH \
--url https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId} \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"description": "<string>",
"eventTypes": []
}
'import requests
url = "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}"
payload = {
"url": "<string>",
"description": "<string>",
"eventTypes": []
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', description: '<string>', eventTypes: []})
};
fetch('https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'description' => '<string>',
'eventTypes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"eventTypes": [
"<string>"
],
"secretPrefix": "<string>",
"lastFour": "<string>",
"createdByClerkUserId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"requestId": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "forbidden",
"message": "Your Workspace role cannot perform this action.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "webhook_endpoint_not_found",
"message": "The webhook endpoint does not exist in the active Workspace.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "invalid_request",
"message": "The request failed validation.",
"requestId": "req_9f8e7d6c",
"details": {
"fields": {
"url": [
"Expected an HTTPS URL without credentials or fragments"
]
}
}
}
}Webhooks
Update a webhook endpoint
Partial update; omitted fields keep their stored values. Disabling an
endpoint pauses new fan-out and claims; re-enabling resumes both.
Requires the webhooks:manage permission.
PATCH
/
v1
/
webhook-endpoints
/
{endpointId}
Update a webhook endpoint
curl --request PATCH \
--url https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId} \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"description": "<string>",
"eventTypes": []
}
'import requests
url = "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}"
payload = {
"url": "<string>",
"description": "<string>",
"eventTypes": []
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', description: '<string>', eventTypes: []})
};
fetch('https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'description' => '<string>',
'eventTypes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/webhook-endpoints/{endpointId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"eventTypes\": []\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"eventTypes": [
"<string>"
],
"secretPrefix": "<string>",
"lastFour": "<string>",
"createdByClerkUserId": "<string>",
"disabledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"requestId": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "forbidden",
"message": "Your Workspace role cannot perform this action.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "webhook_endpoint_not_found",
"message": "The webhook endpoint does not exist in the active Workspace.",
"requestId": "req_9f8e7d6c"
}
}{
"error": {
"code": "invalid_request",
"message": "The request failed validation.",
"requestId": "req_9f8e7d6c",
"details": {
"fields": {
"url": [
"Expected an HTTPS URL without credentials or fragments"
]
}
}
}
}Path Parameters
The webhook endpoint ID.
Body
application/json
At least one field is required; omitted fields keep their stored values.
Maximum string length:
500Maximum string length:
200Maximum array length:
32Available options:
business.created, business.onboarding_completed, business_membership.created, book_version.published, book_publication.rolled_back, quote_intent.requires_input, quote_intent.succeeded, quote_intent.failed Available options:
active, disabled ⌘I