---
title: "Updates project data retention controls."
method: POST
path: "/organization/projects/{project_id}/data_retention"
tags: ["Data retention"]
---

# Updates project data retention controls.

`POST /organization/projects/{project_id}/data_retention`

## Path parameters

- `project_id` string, required

## Request body

- UpdateProjectDataRetentionBody — Parameters for updating project data retention controls.
  - `retention_type` 'organization_default' | 'none' | 'zero_data_retention' | 'modified_abuse_monitoring' | 'enhanced_zero_data_retention' | 'enhanced_modified_abuse_monitoring', required — The desired project data retention type.

## Response `200`

Project data retention controls updated successfully.

- ProjectDataRetention — Represents a project's data retention control setting.
  - `object` 'project.data_retention', required — The object type, which is always `project.data_retention`.
  - `type` 'organization_default' | 'none' | 'zero_data_retention' | 'modified_abuse_monitoring' | 'enhanced_zero_data_retention' | 'enhanced_modified_abuse_monitoring', required — The configured project data retention type.

## Changes

- **2026-08-05** `ab0c5306e390` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openai/apis/openapi/changes/organization/projects/:project_id/data_retention/post.md)

---

[API](https://skmtc.dev/openai/apis/openapi.md) · [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openai/openapi/revisions/959ef977e135/schema)
