Create logging fallback policy
POST
/api/admin/logging-policies/fallbacks
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/logging-policies/fallbacks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "scope_type": "tenant", "scope_id": "tenant_123", "log_type": "security", "plane": "control", "fallback_destination_id": "dest_fallback_123", "failure_mode": "retry_then_dlq" }'Creates a logging fallback policy for platform or tenant scope and records admin audit evidence.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
Example
{ "scope_type": "tenant", "scope_id": "tenant_123", "log_type": "security", "plane": "control", "fallback_destination_id": "dest_fallback_123", "failure_mode": "retry_then_dlq"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
Example
{ "item": { "id": "pol_123", "tenant_id": "tenant_123", "log_type": "security", "plane": "control", "destination_id": "dest_123", "fallback_policy_id": null, "enabled": 1, "managed_by": "platform", "change_protection": "confirm", "approval_policy_id": null, "policy_hash": "sha256:abc123", "version": 1, "created_at": 1770000000000, "updated_at": 1770000000000 }, "audit_id": "audit_123", "version": 1}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"}