Update a retention policy (admin)
PUT
/api/v1/retention/{scope}Parameters
scopepathstringrequiredruns, audit_log, backups, or changes
Responses
200Policy updated
Request
curl -X PUT "https://api.knowledgetree.dev/api/v1/retention/{scope}" \
-H "Authorization: Bearer $KT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "max_age_days": 90, "max_count": 1000 }'Response
200Policy updated
Example response not yet documented.