Data retention

Update project data retention

Changed on

Updates project data retention controls.

post/organization/projects/{project_id}/data_retention

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/organization/projects/{project_id}/data_retention
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project to update.

Request body

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

Project data retention controls updated successfully.

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

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status