iai policies update
Update a policy (creates a new version)
Synopsis
Update a policy by creating a new version with updated content.
This creates a new version of the policy using the content from the provided file. The previous versions are preserved and can still be accessed by version number.
Each prompt holds exactly one policy (flat YAML, fields at the root).
Run iai policies schema to see the current field definitions.
Example
# policy.yaml
id: escalate
name: Escalation Policy
condition: User requests human agent
action: Transfer to human
criticality: HIGHExamples
iai policies update safety-rules --file policy.yaml
iai policies update safety-rules --file policy.yaml -m "tighten refund approval limits"
iai policies update safety-rules --file policy.yaml --schema-version 2.1.0
iai policies update safety-rules --file policy.yaml --labels staging,qaOptions
Options inherited from parent commands
SEE ALSO
iai policies - Single-step behavioral rules for agents
Last updated
Was this helpful?

