Skip to main content
PUT
Replace a project retention policy

Authorizations

Authorization
string
header
required

A fine-grained control-plane API key (values begin with hh_fgcp_). Classic API keys used with the Data Plane API will not work here. Create one in the HoneyHive app under an organization's or workspace's Settings → API Keys.

Path Parameters

project_id
string
required

The project whose retention policy is requested.

Body

application/json
max_age_days
integer | null
required

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.

Required range: x <= 3650
experiment_max_age_days
integer | null
required

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.

Required range: x <= 3650

Response

The scope's explicit and effective retention policies.

success
enum<boolean>
required
Available options:
true
data
object
required