RetentionPolicyWrite
Fields
PUT body for /projects/{id}/retention-policy.
12 fields
ai_versions_per_run- integer or null
ai_versions_per_test- integer or null
artifacts_days- integer or null
audit_days- integer or null
enabled- boolean or null
inherit- array of string or null
keep_last_runs- integer or null
pause_days- integer or null
purge_window_start_utc- integer or null
raw_events_days- integer or null
resume- boolean or null
runs_days- integer or null
Raw schema (JSON)
{
"description": "PUT body for ``/projects/{id}/retention-policy``.\n\nAll fields optional — omitted fields keep their current (or default)\nvalue. Per-field bounds 422 here; the cross-field ``audit_days >=\nruns_days`` check runs in the service on the MERGED values (a partial\nbody can't be validated field-locally).",
"properties": {
"ai_versions_per_run": {
"anyOf": [
{
"maximum": 100,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ai Versions Per Run"
},
"ai_versions_per_test": {
"anyOf": [
{
"maximum": 100,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Ai Versions Per Test"
},
"artifacts_days": {
"anyOf": [
{
"maximum": 3650,
"minimum": 7,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Artifacts Days"
},
"audit_days": {
"anyOf": [
{
"maximum": 3650,
"minimum": 365,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Audit Days"
},
"enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Enabled"
},
"inherit": {
"anyOf": [
{
"items": {
"type": "string"
},
"maxItems": 7,
"type": "array"
},
{
"type": "null"
}
],
"title": "Inherit"
},
"keep_last_runs": {
"anyOf": [
{
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Keep Last Runs"
},
"pause_days": {
"anyOf": [
{
"maximum": 90,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Pause Days"
},
"purge_window_start_utc": {
"anyOf": [
{
"maximum": 23,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Purge Window Start Utc"
},
"raw_events_days": {
"anyOf": [
{
"maximum": 3650,
"minimum": 7,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Raw Events Days"
},
"resume": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Resume"
},
"runs_days": {
"anyOf": [
{
"maximum": 3650,
"minimum": 30,
"type": "integer"
},
{
"type": "null"
}
],
"title": "Runs Days"
}
},
"title": "RetentionPolicyWrite",
"type": "object"
}Used by endpoints
Section titled “Used by endpoints”One endpoint sends or returns this schema, on its own or inside another schema.
PUT/api/v1/projects/{project_id}/retention-policy— Put Retention Policy
Used by schemas
Section titled “Used by schemas”No other schema contains this one.
More details
Section titled “More details”- Specification: OpenAPI JSON