Update Subscription
curl --request PATCH \
--url https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"endpointUrl": "<string>"
}
'import requests
url = "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}"
payload = {
"enabled": True,
"endpointUrl": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, endpointUrl: '<string>'})
};
fetch('https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_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.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_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([
'enabled' => true,
'endpointUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}"
payload := strings.NewReader("{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-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://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpointUrl": "<string>",
"eventTypes": [
"<string>"
],
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}webhooks
Update Subscription
Update a webhook subscription (enable/disable and/or endpoint URL).
Editing the endpoint URL updates the provider destination in place, so the
signing secret is preserved.
Authentication: Requires X-API-Key header with valid API key.
Args:
subscription_id: Subscription UUID
request_data: Update request
identity: Authenticated API key identity
repository: Repository for accessing subscriptions (injected)
Returns:
WebhookSubscriptionResponse with updated subscription
Raises:
401: If API key missing or invalid
403: If subscription belongs to different workspace
404: If subscription not found
Example:
PATCH /api/v1/integrations/webhooks/subscriptions/550e8400-...
{
"enabled": false
}
Response (200):
{
"id": "550e8400-...",
"workspace_id": "660e8400-...",
"endpoint_url": "https://example.com/webhooks",
"secret": "whsec_...",
"event_types": ["asset.processing.completed"],
"description": "Production webhook",
"enabled": false,
"created_at": "2026-04-09T12:00:00Z",
"updated_at": "2026-04-09T12:30:00Z"
}
PATCH
/
api
/
webhooks
/
subscriptions
/
{subscription_id}
Update Subscription
curl --request PATCH \
--url https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"endpointUrl": "<string>"
}
'import requests
url = "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}"
payload = {
"enabled": True,
"endpointUrl": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, endpointUrl: '<string>'})
};
fetch('https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_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.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_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([
'enabled' => true,
'endpointUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}"
payload := strings.NewReader("{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-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://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/webhooks/subscriptions/{subscription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"endpointUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpointUrl": "<string>",
"eventTypes": [
"<string>"
],
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Workspace-scoped API key. Format: sk_live_{64 hex chars}
Path Parameters
Body
application/json
Response
Successful Response
Response model for webhook subscription (GET/LIST/PATCH operations).
Subscription ID
Workspace ID
Webhook endpoint URL
Subscribed event types
Whether subscription is active
Creation timestamp
Last update timestamp
Subscription description