Update Subscription
webhooks
Update Subscription
Update a webhook subscription (currently supports enabling/disabling).
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
Update Subscription
Authorizations
Workspace-scoped API key. Format: sk_live_{64 hex chars}
Path Parameters
Body
application/json
Request model for updating a webhook subscription.
Whether subscription should be enabled
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