{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-put-retention-policy-request-schema.json",
  "title": "PutRetentionPolicyRequest",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/honeyhive-ai-main-openapi.yml#/components/schemas/PutRetentionPolicyRequest",
  "type": "object",
  "properties": {
    "max_age_days": {
      "type": [
        "integer",
        "null"
      ],
      "exclusiveMinimum": 0,
      "maximum": 3650,
      "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."
    },
    "experiment_max_age_days": {
      "type": [
        "integer",
        "null"
      ],
      "exclusiveMinimum": 0,
      "maximum": 3650,
      "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."
    }
  },
  "required": [
    "max_age_days",
    "experiment_max_age_days"
  ],
  "additionalProperties": false
}