Update a configuration version

This updates the settings and rules of a configuration version. The request replaces the version in full, so send the complete set of values you want it to have: anything you leave out is cleared, omitted rules are removed, and omitted booleans fall back to their defaults. Only versions with an activationStatus of INACTIVE or FAILED can be edited, since activating a version freezes it permanently. To change a configuration that is already active, clone its active version with the Clone an FAI configuration version operation, update the clone, then activate the clone.

Path Params
string
required
^[0-9]+$

Identifier for the FAI configuration.

integer
required

Version number of the FAI configuration.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params

Represents a specific version of a Firewall for AI configuration, including its security rules, activation status, and version metadata.

string
length ≤ 1024

The default response body returned when a request is denied by any rule configured with a DENY action and without its own presetResponse. Ignored on API type configurations.

defaultModifiedResponse
object

The default modified response definition, used by any rule or PII entity with a MODIFY action that does not carry its own modifiedResponse. A MODIFY action that resolves to no modified response at all is rejected when you save the version, not when you activate it.

boolean
Defaults to true

Whether input logging is enabled. When true, all input prompts to the LLM are logged.

boolean
Defaults to true

Whether output logging is enabled. When true, all LLM responses are logged.

boolean
Defaults to true

Whether PII fields are masked in input logs. When true, it redacts detected PII in prompts.

boolean
Defaults to true

Whether PII fields are masked in output logs. When true, it redacts detected PII in responses.

rules
array of objects

The security rules configured for this version, including sensitivity, size, PII, or off-topic rules depending on the rule type. Run List FAI rule types operation for available rules.

rules
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json