Templates
Apply a template
Create a new policy from a template by providing variable values. Templates may have required and optional variables that customize the generated policy.
v11: the generated policy is written to dynamic_policies, which migrations/core/172 makes read-only to the application roles, so on a deployment whose database connection cannot write it this route answers 409 LEGACY_POLICY_WRITE_FROZEN before the request body is read, whatever it contains, as the policy write routes do. An owner-role deployment still applies.
post/api/v1/templates/{id}/apply
Request
- Base URLhttps://agent.getaxonflow.com
- Authnone declared. Required headers: X-Tenant-ID
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-User-IDstring
Example:user@company.com
User identifier for audit logging
Request body
Response
Policy created from template
Example response
{
"policy": {
"id": "pol_abc123def456",
"name": "Block PII Access",
"description": "Prevent unauthorized access to personally identifiable information",
"category": "dynamic-risk",
"actions": [
{
"config": {
"message": "Request blocked by policy",
"channel": "security-alerts"
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.