API referenceAudit
PUT /audit/retention
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X PUT "https://example.com/audit/retention" \ -H "Content-Type: application/json" \ -d '{ "archiveContent": true, "days": 30, "enabled": true, "lockMode": "GOVERNANCE", "reason": "string", "region": "string", "revision": 0 }'{ "$schema": "https://example.com/schemas/LedgerPolicy.json", "archiveContent": true, "configured": true, "days": 0, "enabled": true, "lockMode": "string", "maximumDays": 0, "region": "string", "revision": 0}archiveContent*boolean
confirmCompliance?boolean
days*integer
Format
int32Value in
- 30
- 180
- 365
- 2555
enabled*boolean
lockMode*string
Value in
- "GOVERNANCE"
- "COMPLIANCE"
reason*string
Length
1 <= length <= 2000region*string
Length
1 <= length <= 32revision*integer
Format
int64Range
0 <= value