Gateway

Update a guardrail

Updates guardrail policy fields. Requires guardrails:write.

patch/guardrails/{id}

Request

  • Base URL: https://api.phaseo.app/v1
  • URL: https://api.phaseo.app/v1/guardrails/{id}
  • Auth: HTTP bearer

Request body

namestring
descriptionstring nullable
enabledboolean
privacyEnablePaidMayTrainboolean nullable
privacyEnableFreeMayTrainboolean nullable
privacyEnableFreeMayPublishPromptsboolean nullable
privacyEnableInputOutputLoggingboolean nullable
privacyZdrOnlyboolean nullable
providerRestrictionMode'none' | 'allowlist' | 'blocklist'
providerRestrictionProviderIdsstring[]
providerRestrictionEnforceAllowedboolean
modelRestrictionMode'none' | 'allowlist' | 'blocklist'
allowedApiModelIdsstring[]
promptInjectionEnabledboolean
promptInjectionAction'flag' | 'block'
sensitiveInfoEnabledboolean
sensitiveInfoDefaultAction'flag' | 'redact' | 'block'
sensitiveInfoRulesobject[]

Response

Guardrail updated

Changes

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