Create or update a knowledge policy
Creates or updates an organization knowledge policy. Personal tokens must belong to an organization admin (parity with the dashboard). Organization-global knowledge writes are not available to asset-scoped tokens.
Authorizations
API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.
Body
Unique key of the policy. Sending an existing key updates that policy.
1 - 120Rule text the agent follows, for example Never submit forms on the production checkout.
1 - 12000Category of the policy, for example constraint or preference.
1 - 60When false, the policy is stored but the agent ignores it.
Free-form JSON object stored with the policy.
Response
Saved policy.
The response is of type object.