Update Subscription
PATCH
/platform/v1/webhooks/subscriptions/{sub_id}
const url = 'https://example.com/platform/v1/webhooks/subscriptions/1';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"buffer_max_batch":1,"buffer_window_seconds":1,"custom_headers":{"additionalProperty":"example"},"description":"example","event_types":["example"],"inactivity_minutes":1,"is_active":true,"platform_channel_id":1,"target_url":"https://example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/platform/v1/webhooks/subscriptions/1 \ --header 'Content-Type: application/json' \ --data '{ "buffer_max_batch": 1, "buffer_window_seconds": 1, "custom_headers": { "additionalProperty": "example" }, "description": "example", "event_types": [ "example" ], "inactivity_minutes": 1, "is_active": true, "platform_channel_id": 1, "target_url": "https://example.com" }'Partial update.
- Re-running
target_urltriggers the SSRF guard again. event_typesvalidator runs in the schema (422 on unknown).platform_channel_idmust belong to the account (422 on miss).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sub_id
required
Sub Id
integer
Request Body required
Section titled “Request Body required ” Media type application/json
PlatformWebhookSubscriptionUpdate
Partial update of a normalized subscription.
object
event_types
Any of:
Array<string>
null
Example generated
{ "buffer_max_batch": 1, "buffer_window_seconds": 1, "custom_headers": { "additionalProperty": "example" }, "description": "example", "event_types": [ "example" ], "inactivity_minutes": 1, "is_active": true, "platform_channel_id": 1, "target_url": "https://example.com"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
PlatformWebhookSubscriptionResponse
Subscription response — NEVER includes secret_encrypted.
object
developer_account_id
required
Developer Account Id
integer
event_types
Event Types
Array<string>
failure_count
required
Failure Count
integer
id
required
Id
integer
is_active
required
Is Active
boolean
is_paused
required
Is Paused
boolean
target_url
required
Target Url
string
Example generated
{ "buffer_max_batch": 1, "buffer_window_seconds": 1, "created_at": "2026-04-15T12:00:00Z", "custom_headers": { "additionalProperty": "example" }, "description": "example", "developer_account_id": 1, "event_types": [ "example" ], "failure_count": 1, "id": 1, "inactivity_minutes": 1, "is_active": true, "is_paused": true, "last_delivery_at": "2026-04-15T12:00:00Z", "paused_reason": "example", "platform_channel_id": 1, "target_url": "example", "updated_at": "2026-04-15T12:00:00Z"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}