---
title: "Add a retention policy to a document"
method: POST
path: "/api/v0/documents/{document_id}/retention-policies"
tags: ["Documents"]
---

# Add a retention policy to a document

`POST /api/v0/documents/{document_id}/retention-policies`

Associates a retention policy with a document. Multiple retention policies can be associated with a single document.

## Path parameters

- `document_id` string, uuid, required

## Query parameters

- `retention_policy_id` string, uuid, required

## Response `200`

Successful Response

- DocumentRetentionPolicyAssociationGetResponse
  - `document_id` string, uuid, required — The ID of the document.
  - `retention_policy_id` string, uuid, required — The ID of the retention policy.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
