Create retention rule

Create a new retention rule. Auto-deactivates any existing active rule for the same scope.

Request

This endpoint expects an object.
retentionenumRequired
Allowed values:
project_idstringOptionalformat: "uuid"
organization_levelbooleanOptional

Set to true to create an organization-level rule

apply_to_pastbooleanOptional

Response headers

Locationstring

Response

Created
retentionenum
Allowed values:
idstringRead-onlyformat: "uuid"
workspace_idstringRead-only
project_idstringformat: "uuid"
levelenumRead-only
Computed from projectId and organizationLevel
Allowed values:
apply_to_pastboolean
enabledbooleanRead-only
created_bystringRead-only
created_atdatetimeRead-only
last_updated_bystringRead-only
last_updated_atdatetimeRead-only