---
title: "Set whether input text is stored and how long evaluations are kept"
method: PATCH
path: "/api/v1/org"
tags: ["Account"]
---

# Set whether input text is stored and how long evaluations are kept

`PATCH /api/v1/org`

## Request

- Base URL: `https://overwing.ai`
- URL: `https://overwing.ai/api/v1/org`
- Auth: HTTP bearer

## Request body

- object
  - `store_inputs` boolean: False: evaluation records keep the verdict, scores and metadata, never the input text or context
  - `retention_days` integer, nullable: Evaluations older than this are deleted once a day. Null keeps them until you delete them

## Response `200`

Updated

- OrgSettings
  - `org_id` string
  - `name` string
  - `plan` string
  - `store_inputs` boolean
  - `retention_days` integer, nullable

## Other responses

- `400`: Invalid value
- `401`: Missing or invalid API key
- `403`: The key's scope does not allow this

---

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