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

  • Stream destination UUID

Body

required
application/json
  • syslog_tls only.

Responses

  • application/json
  • Validation error, transport change attempt, or field does not apply to the transport

  • Authentication required

  • Insufficient permissions (requires audit-log:manage and entity-level resource-group:bypass)

  • Stream destination not found or not accessible

Request Example for put/audit-logs/stream-destinations/{id}
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"
  }
}