curl --request PATCH \
--url https://sandbox.circularo.com/api/v2/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hmacSecret": null,
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
}
}
'import requests
url = "https://sandbox.circularo.com/api/v2/webhooks/{id}"
payload = {
"hmacSecret": None,
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hmacSecret: null,
basicAuth: {username: 'circularo-hook', password: 's3cr3t-p4ssw0rd'}
})
};
fetch('https://sandbox.circularo.com/api/v2/webhooks/{id}', 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://sandbox.circularo.com/api/v2/webhooks/{id}",
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([
'hmacSecret' => null,
'basicAuth' => [
'username' => 'circularo-hook',
'password' => 's3cr3t-p4ssw0rd'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox.circularo.com/api/v2/webhooks/{id}"
payload := strings.NewReader("{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://sandbox.circularo.com/api/v2/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}"
response = http.request(request)
puts response.read_body{
"basicAuth": {
"username": "circularo-hook"
},
"callbackUrl": "https://example.com/webhooks/circularo",
"createdAt": "2026-05-11T09:30:00.000Z",
"createdBy": {
"email": "john.smith@example.com",
"fullname": "John Smith",
"userId": "john.smith@example.com"
},
"id": "Zq4tXm7RkP2nWv5bLdCy",
"isHmacConfigured": false
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Update a webhook
PATCH /webhooks/{id}
Updates the callback URL or the way deliveries of a webhook are secured. Only the fields you provide are changed.
Both ways of securing a webhook follow the same rules: omit the field to leave it as it is, send it to replace it, or send null to remove it. A webhook uses either HTTP Basic authentication or an HMAC signature, so configuring one while the other is still in place is rejected — remove the other one in the same request.
Because the HTTP Basic password is never returned, sending basicAuth back with only its username keeps the stored password. Send password as well to rotate it. That password is never carried over to a different endpoint, so a request that changes callbackUrl re-sends basicAuth in full, or removes it.
Required user rights: use_webhooks
Required user permission profile: organization_admin
curl --request PATCH \
--url https://sandbox.circularo.com/api/v2/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hmacSecret": null,
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
}
}
'import requests
url = "https://sandbox.circularo.com/api/v2/webhooks/{id}"
payload = {
"hmacSecret": None,
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hmacSecret: null,
basicAuth: {username: 'circularo-hook', password: 's3cr3t-p4ssw0rd'}
})
};
fetch('https://sandbox.circularo.com/api/v2/webhooks/{id}', 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://sandbox.circularo.com/api/v2/webhooks/{id}",
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([
'hmacSecret' => null,
'basicAuth' => [
'username' => 'circularo-hook',
'password' => 's3cr3t-p4ssw0rd'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox.circularo.com/api/v2/webhooks/{id}"
payload := strings.NewReader("{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://sandbox.circularo.com/api/v2/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hmacSecret\": null,\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n }\n}"
response = http.request(request)
puts response.read_body{
"basicAuth": {
"username": "circularo-hook"
},
"callbackUrl": "https://example.com/webhooks/circularo",
"createdAt": "2026-05-11T09:30:00.000Z",
"createdBy": {
"email": "john.smith@example.com",
"fullname": "John Smith",
"userId": "john.smith@example.com"
},
"id": "Zq4tXm7RkP2nWv5bLdCy",
"isHmacConfigured": false
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Body
Fields to update on a webhook. Omitted fields are left unchanged.
Response
Returns the updated webhook.
A webhook subscription: its identifier, the HTTPS callback URL events are delivered to, who created it and how its deliveries are secured.