Update subscription
curl --request PATCH \
--url https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "PAUSED",
"eventFilter": [
"payout.completed"
]
}
'import requests
url = "https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}"
payload = {
"status": "PAUSED",
"eventFilter": ["payout.completed"]
}
headers = {
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'PAUSED', eventFilter: ['payout.completed']})
};
fetch('https://qa-api.endl.xyz/api/v0/webhooks/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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{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([
'status' => 'PAUSED',
'eventFilter' => [
'payout.completed'
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}"
payload := strings.NewReader("{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("API-KEY", "<api-key>")
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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Subscription updated",
"status": "SUCCESS",
"data": {
"id": "2b1e8f40-3c9a-4d21-9f7e-6a1c0b5d2e34",
"deliveryMode": "PUSH",
"target": "https://api.acme.com/webhooks/endl",
"eventFilter": [
"payout.completed"
],
"schemaVersion": "1.0",
"status": "PAUSED",
"secretHint": "whsec_…5RtBw",
"createdOn": "2026-09-02T12:34:56.789Z"
},
"errors": []
}A partial update — a null or omitted field is left unchanged. You can change the status and the event filter.
The target URL is immutable. A request that includes target is rejected. To send events somewhere else, delete the subscription and create a new one, which issues a fresh signing secret. This is deliberate: it stops a compromised key from silently repointing a live, signed event stream at an attacker.
PATCH
/
api
/
v0
/
webhooks
/
subscriptions
/
{id}
Update subscription
curl --request PATCH \
--url https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "PAUSED",
"eventFilter": [
"payout.completed"
]
}
'import requests
url = "https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}"
payload = {
"status": "PAUSED",
"eventFilter": ["payout.completed"]
}
headers = {
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'PAUSED', eventFilter: ['payout.completed']})
};
fetch('https://qa-api.endl.xyz/api/v0/webhooks/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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{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([
'status' => 'PAUSED',
'eventFilter' => [
'payout.completed'
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}"
payload := strings.NewReader("{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("API-KEY", "<api-key>")
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://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/webhooks/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"PAUSED\",\n \"eventFilter\": [\n \"payout.completed\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Subscription updated",
"status": "SUCCESS",
"data": {
"id": "2b1e8f40-3c9a-4d21-9f7e-6a1c0b5d2e34",
"deliveryMode": "PUSH",
"target": "https://api.acme.com/webhooks/endl",
"eventFilter": [
"payout.completed"
],
"schemaVersion": "1.0",
"status": "PAUSED",
"secretHint": "whsec_…5RtBw",
"createdOn": "2026-09-02T12:34:56.789Z"
},
"errors": []
}Authorizations
Your partner API key. Requires the webhooks permission, or events for the PULL feed.
Path Parameters
The subscription's UUID.
Body
application/json
Response
Updated.