---
title: "create backup retention policy"
method: POST
path: "/accounts/{account_id}/backup_retention_policies"
tags: ["BackupRetentionPolicies"]
---

# create backup retention policy

`POST /accounts/{account_id}/backup_retention_policies`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/accounts/{account_id}/backup_retention_policies`
- Auth: API key in header `Authorization`

Creates a new backup retention policy for the specified account.

## Path parameters

- `account_id` integer, required

## Query parameters

- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Request body

- CreateBackupRetentionPolicyRequest
  - `daily` integer
  - `monthly` integer
  - `yearly` integer
  - `keep_final` boolean
  - `make_copy` boolean

## Response `201`

successful

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-07-24** `1dc1e5b8c6eb`: 2 info
  - added the new optional `header` request parameter `Prefer`
  - added the new optional `query` request parameter `no_embed`

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/accounts/:account_id/backup_retention_policies/post.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
