Skip to main content

Policy API

Get and update the trust policy that controls search behavior.

Get Policy

Update Policy

Only provided fields are updated. All fields are optional.
integer
Seconds before content is stale (60-31536000)
object
Priority weights for source types
float
Weight for repository sources (0-5)
float
Weight for HTML documentation (0-5)
float
Weight for OpenAPI specs (0-5)
integer
Minimum results before refusing (0-100)
float
Minimum score before refusing (0-1)
boolean
Filter/warn about stale results
boolean
Refuse with insufficient evidence

Reset Policy

Reset all settings to defaults.

Default Values