# RetentionPolicySaveRequest

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/http-api/schemas/retentionpolicysaverequest/
> Summary: OpenAPI request or response schema for RetentionPolicySaveRequest, including required fields, defaults, constraints, and linked nested types.

[← All HTTP schemas](/http-api/schemas/)

Request body for saving a retention policy.

**Shape:** `object`

| Property | Required | Type | Description | Rules |
|---|---|---|---|---|
| `maxAgeDays` | no | `integer (int32)` | Rows older than this age are candidates for deletion. | pattern `^-?(?:0\\|[1-9]\d*)$` |
| `maxRows` | no | `integer (int64)` | The maximum number of rows to keep for the target. The oldest rows are deleted. | pattern `^-?(?:0\\|[1-9]\d*)$` |
| `archive` | no | `boolean` | Whether to archive rows before deleting them. | — |
| `enabled` | no | `boolean` | Whether the policy is enabled. | — |
