> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ReplaceWorkspaceRetentionPolicyRequest

> TypeScript request type for the HoneyHive API

## Properties

### experiment\_max\_age\_days

> **experiment\_max\_age\_days**: `number` | `null`

#### Description

Days to keep an experiment run, counted from the creation of the run. A run expires as a whole, with its sessions and their events. From 1 to 3650. null keeps experiment runs indefinitely.

***

### max\_age\_days

> **max\_age\_days**: `number` | `null`

#### Description

Days to keep a session that belongs to no experiment run, counted from the start of the session. A session expires as a whole, with all of its events, also while it still receives events. A session of an experiment run whose record was deleted, and a session that has no session event, are kept whatever this value is. From 1 to 3650. null keeps these sessions indefinitely.

***

### workspace\_id

> **workspace\_id**: `string`

#### Description

The workspace whose retention policy is requested.


## Related topics

- [Retention Policies Methods](https://docs.honeyhive.ai/v2/control-plane-sdk-reference/typescript/ref/retention-policies/index.md)
- [Clients](https://docs.honeyhive.ai/v2/changelog/clients.md)
- [Replace a workspace retention policy](https://docs.honeyhive.ai/v2/control-plane-api-reference-autogen/retention-policies/replace-a-workspace-retention-policy.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.