Publish logging policy snapshot draft
POST
/api/admin/logging-policies/drafts/{id}/publish
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/logging-policies/drafts/example/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expected_version": 4, "confirmation": "PUBLISH LOGGING POLICY tenant:tenant_123" }'Publishes a draft logging policy snapshot after confirmation and optional expected version check.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
scope_type
string
scope_id
string
tenant_id
string
confirmation
string
expected_version
integer
key
additional properties
Example
{ "expected_version": 4, "confirmation": "PUBLISH LOGGING POLICY tenant:tenant_123"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
Example
{ "item": { "id": "snap_123", "scope_type": "tenant", "scope_id": "tenant_123", "version": 4, "status": "published", "policy_hash": "sha256:policy", "object_ref": "kv://logging/policies/tenant_123/4", "pointer_key": "logging:policy:tenant:tenant_123", "created_at": 1770000000, "published_at": 1770000000 }, "audit_id": "audit_123", "version": 4}default
Section titled “default ”Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}