Update a Webhook Subscription
curl --request PUT \
--url https://api.coverwhale.dev/v1/webhook-subscriptions/{id} \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: <content-type>' \
--data '
{
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": false
}
'import requests
url = "https://api.coverwhale.dev/v1/webhook-subscriptions/{id}"
payload = {
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": ["submission.bind_completed", "submission.canceled"],
"active": False
}
headers = {
"Content-Type": "<content-type>",
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': '<content-type>', Accept: '<accept>', AccessToken: '<api-key>'},
body: JSON.stringify({
endpoint_url: 'https://hooks.yourapp.com/coverwhale-v2',
event_types: ['submission.bind_completed', 'submission.canceled'],
active: false
})
};
fetch('https://api.coverwhale.dev/v1/webhook-subscriptions/{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://api.coverwhale.dev/v1/webhook-subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'endpoint_url' => 'https://hooks.yourapp.com/coverwhale-v2',
'event_types' => [
'submission.bind_completed',
'submission.canceled'
],
'active' => false
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>",
"Content-Type: <content-type>"
],
]);
$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://api.coverwhale.dev/v1/webhook-subscriptions/{id}"
payload := strings.NewReader("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coverwhale.dev/v1/webhook-subscriptions/{id}")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.body("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/webhook-subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
request.body = "{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}"
response = http.request(request)
puts response.read_body{
"id": 42,
"company_id": 6042,
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": false,
"secret_rotated_at": null,
"created_at": "2026-07-14T12:00:00+00:00",
"updated_at": "2026-07-14T12:05:00+00:00"
}{
"error": "Not found"
}Webhook Subscriptions
Update a Webhook Subscription
Update a subscription’s endpoint URL, event types, and/or active flag. All fields are optional — send only what you want to change. Set active: false to pause deliveries without deleting the subscription.
PUT
/
webhook-subscriptions
/
{id}
Update a Webhook Subscription
curl --request PUT \
--url https://api.coverwhale.dev/v1/webhook-subscriptions/{id} \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: <content-type>' \
--data '
{
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": false
}
'import requests
url = "https://api.coverwhale.dev/v1/webhook-subscriptions/{id}"
payload = {
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": ["submission.bind_completed", "submission.canceled"],
"active": False
}
headers = {
"Content-Type": "<content-type>",
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': '<content-type>', Accept: '<accept>', AccessToken: '<api-key>'},
body: JSON.stringify({
endpoint_url: 'https://hooks.yourapp.com/coverwhale-v2',
event_types: ['submission.bind_completed', 'submission.canceled'],
active: false
})
};
fetch('https://api.coverwhale.dev/v1/webhook-subscriptions/{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://api.coverwhale.dev/v1/webhook-subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'endpoint_url' => 'https://hooks.yourapp.com/coverwhale-v2',
'event_types' => [
'submission.bind_completed',
'submission.canceled'
],
'active' => false
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>",
"Content-Type: <content-type>"
],
]);
$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://api.coverwhale.dev/v1/webhook-subscriptions/{id}"
payload := strings.NewReader("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coverwhale.dev/v1/webhook-subscriptions/{id}")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.body("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/webhook-subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
request.body = "{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale-v2\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\"\n ],\n \"active\": false\n}"
response = http.request(request)
puts response.read_body{
"id": 42,
"company_id": 6042,
"endpoint_url": "https://hooks.yourapp.com/coverwhale-v2",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": false,
"secret_rotated_at": null,
"created_at": "2026-07-14T12:00:00+00:00",
"updated_at": "2026-07-14T12:05:00+00:00"
}{
"error": "Not found"
}Authorizations
AWS Cognito access token obtained from the /authentication endpoint. Token expires after 3600 seconds.
Path Parameters
Body
application/json
Response
Updated subscription
Example:
42
Example:
6042
Example:
"https://hooks.yourapp.com/coverwhale-v2"
Example:
[
"submission.bind_completed",
"submission.canceled"
]
Example:
false
Example:
null
Example:
"2026-07-14T12:00:00+00:00"
Example:
"2026-07-14T12:05:00+00:00"
⌘I