Update a stream destination (rename, swap endpoint, enable/disable)
Patches a destination. Rename it, replace its endpoint (re-validated
against SSRF), toggle enabled, or replace the customCaPem (syslog_tls
only). The transport is immutable after creation and cannot be changed.
The update is recorded as an audit event. Requires the audit-log:manage
permission. Also requires an entity-level resource-group:bypass grant — a
manage grant assigned scoped to a resource group is refused, since this
surface is not clamped to resource groups.
Path Parameters
- Type: stringFormat: uuididrequired
Stream destination UUID
Body
- Type: stringcustom
Ca Pem syslog_tls only.
- Type: booleanenabled
- Type: stringendpoint
- Type: stringnamemin length:1max length:255
Responses
- application/json
- 400
Validation error, transport change attempt, or field does not apply to the transport
- 401
Authentication required
- 403
Insufficient permissions (requires audit-log:manage and entity-level resource-group:bypass)
- 404
Stream destination not found or not accessible
curl https://api.gpcn.com/v1/audit-logs/stream-destinations/123e4567-e89b-12d3-a456-426614174000 \
--request PUT \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"endpoint": "",
"enabled": true,
"customCaPem": ""
}'
{
"success": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"transport": "https",
"endpointConfigured": true,
"enabled": true,
"failureCount": 1,
"autoDisabledAt": "2026-10-21T16:19:07.197Z",
"lastDeliveredAt": "2026-10-21T16:19:07.197Z",
"cursorAt": "2026-10-21T16:19:07.197Z",
"createdAt": "2026-10-21T16:19:07.197Z",
"updatedAt": "2026-10-21T16:19:07.197Z"
}
}.png)