System Policies
Toggle policy enabled status
Toggles the enabled status of a policy.
Restrictions:
- System-tier policies cannot be disabled via this endpoint (use overrides)
v11: on a deployment whose database connection cannot write static_policies (migrations/core/172), this route answers 409 LEGACY_POLICY_WRITE_FROZEN before the request body is read and before the policy is looked up, whatever it contains, naming the typed authoring route. An owner-role deployment still toggles.
patch/api/v1/system-policies/{id}
Request
- Base URLhttps://agent.getaxonflow.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
Static policy UUID
Headers
X-User-IDstring
User ID for audit trail
Request body
Response
Policy updated successfully
Example response
{
"policy_id": "sys_sqli_union_select",
"name": "UNION SELECT Detection",
"description": "Detects SQL injection attempts using UNION SELECT",
"tier": "system",
"pattern": "(?i)\\bUNION\\s+(ALL\\s+)?SELECT\\b",
"priority": 1000,
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.