Pinter
ENID
Governance - Guardrails
View as Markdown

Update Guardrail Governance

PUT/api/governance/guardrails

Update workspace guardrail governance policy. Requires admin role (level <= 2).

Request body

application/json

default_modeenum
hybridsystemoneprompt_guardnone
systemone_model_idstring | null
systemone_thresholdnumber
classic_input_regexboolean
classic_inject_prompt_clauseboolean
output_protection_modeenum
offaudit_onlystrict_redact
output_overlap_thresholdnumber
{
  "default_mode": "hybrid",
  "systemone_model_id": "string",
  "systemone_threshold": 0.7,
  "classic_input_regex": true,
  "classic_inject_prompt_clause": true,
  "output_protection_mode": "off",
  "output_overlap_threshold": 0.3
}

Responses

200 Successful Response

policyobjectrequired
policy.default_modeenum
hybridsystemoneprompt_guardnone
policy.systemone_model_idstring | null
policy.systemone_thresholdnumber
policy.classic_input_regexboolean
policy.classic_inject_prompt_clauseboolean
policy.output_protection_modeenum
offaudit_onlystrict_redact
policy.output_overlap_thresholdnumber
systemone_statusobjectrequired
systemone_status.configuredbooleanrequired
systemone_status.active_model_idstring | null
systemone_status.active_model_namestring | null
systemone_status.active_key_namestring | null
systemone_status.available_modelsobject[]
systemone_status.available_models[].idstringrequired
systemone_status.available_models[].namestringrequired
systemone_status.available_models[].model_idstringrequired
systemone_status.available_models[].key_namestring | null
systemone_status.available_models[].is_activebooleanrequired
{
  "policy": {
    "default_mode": "hybrid",
    "systemone_model_id": "string",
    "systemone_threshold": 0.7,
    "classic_input_regex": true,
    "classic_inject_prompt_clause": true,
    "output_protection_mode": "off",
    "output_overlap_threshold": 0.3
  },
  "systemone_status": {
    "configured": true,
    "active_model_id": "string",
    "active_model_name": "string",
    "active_key_name": "string",
    "available_models": []
  }
}

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

404 Not Found - The requested resource ID was not found.

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X PUT "$PINTER_URL/api/governance/guardrails" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"default_mode":"hybrid","systemone_model_id":"string","systemone_threshold":0.7,"classic_input_regex":true,"classic_inject_prompt_clause":true,"output_protection_mode":"off","output_overlap_threshold":0.3}'