Dynamic Policies

Import policies

Bulk import policies from JSON or YAML format. Supports create or update semantics based on policy_id.

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.

post/api/v1/policies/import

Request

Headers

X-Tenant-IDstring required
X-User-IDstring

Request body

mode'create' | 'upsert'

Import mode - create only or upsert (create or update)

Response

Import result

createdinteger
updatedinteger
failedinteger
errorsstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.