Set retention period

PUT {{baseUrl}}/api/audit/retention

Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years.

Permissions required: 'Confluence Administrator' global permission.

Request Body

{"number"=>"<integer>", "units"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;number&quot;:&quot;\u003cinteger\u003e&quot;,&quot;units&quot;:&quot;\u003cstring\u003e&quot;}