Import dynamic policies
Bulk import dynamic policies from JSON. Supports up to 100 policies per request. Every policy must have a category starting with dynamic- or media-.
On a deployment whose database connection cannot write the legacy policy tables (migrations/core/172), the request is refused 409 LEGACY_POLICY_WRITE_FROZEN before its body is read, whatever it contains, and the refusal names the typed authoring route. An owner-role deployment still imports.
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
Tenant identifier for multi-tenancy isolation. When calling through the Agent (recommended), this header is stamped automatically from the authenticated client — you do not set it yourself. Required only on direct Orchestrator calls (internal deployments).
User identifier for audit logging
Request body
Example request
{
"policies": [
{
"actions": [
{
"config": {
"message": "Request blocked by policy",
"channel": "security-alerts"
}
}
]
}
]
}Response
Import results
Changes
No recorded changes to this operation across all 1 revision of this API.