Update Guardrail
Changed onUpdate an existing guardrail
Example Request:
curl -X PUT "http://localhost:4000/guardrails/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"guardrail": {
"guardrail_name": "updated-bedrock-guard",
"litellm_params": {
"guardrail": "bedrock",
"mode": "pre_call",
"guardrailIdentifier": "ff6ujrregl1q",
"guardrailVersion": "1.0",
"default_on": true
},
"guardrail_info": {
"description": "Updated Bedrock content moderation guardrail"
}
}
}'
Example Response:
{
"guardrail_id": "123e4567-e89b-12d3-a456-426614174000",
"guardrail_name": "updated-bedrock-guard",
"litellm_params": {
"guardrail": "bedrock",
"mode": "pre_call",
"guardrailIdentifier": "ff6ujrregl1q",
"guardrailVersion": "1.0",
"default_on": true
},
"guardrail_info": {
"description": "Updated Bedrock content moderation guardrail"
},
"created_at": "2023-11-09T12:34:56.789Z",
"updated_at": "2023-11-09T13:45:12.345Z"
}
Request
- Base URLhttps://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-litellm-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"guardrail": {
"litellm_params": {
"akto_base_url": "http://localhost:9090"
}
}
}Response
Successful Response
Changes
- breaking
removed from the
//request propertyanyOflist - info
api tag
guardrailsadded - info
api tag
Guardrailsremoved - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added to the
//request propertyanyOflist - info
the
request property default valuev1was removed - info
added the new
CA_SINenum value to the request property///// - info
added the new
DE_BSNRenum value to the request property///// - info
added the new
DE_FUEHRERSCHEINenum value to the request property///// - info
added the new
DE_HANDELSREGISTERenum value to the request property///// - info
added the new
DE_HEALTH_INSURANCEenum value to the request property///// - info
added the new
DE_ID_CARDenum value to the request property///// - info
added the new
DE_KFZenum value to the request property///// - info
added the new
DE_LANRenum value to the request property///// - info
added the new
DE_PASSPORTenum value to the request property///// - info
added the new
DE_PLZenum value to the request property///// - info
added the new
DE_SOCIAL_SECURITYenum value to the request property///// - info
added the new
DE_TAX_IDenum value to the request property///// - info
added the new
DE_TAX_NUMBERenum value to the request property///// - info
added the new
DE_VAT_IDenum value to the request property///// - info
added the new
ES_PASSPORTenum value to the request property///// - info
added the new
IN_GSTINenum value to the request property///// - info
added the new
KR_BRNenum value to the request property///// - info
added the new
KR_DRIVER_LICENSEenum value to the request property///// - info
added the new
KR_FRNenum value to the request property///// - info
added the new
KR_PASSPORTenum value to the request property///// - info
added the new
KR_RRNenum value to the request property///// - info
added the new
MAC_ADDRESSenum value to the request property///// - info
added the new
NG_NINenum value to the request property///// - info
added the new
NG_VEHICLE_REGISTRATIONenum value to the request property///// - info
added the new
PH_PASSPORTenum value to the request property///// - info
added the new
PH_TINenum value to the request property///// - info
added the new
PH_UMIDenum value to the request property///// - info
added the new
SE_ORGANISATIONSNUMMERenum value to the request property///// - info
added the new
SE_PERSONNUMMERenum value to the request property///// - info
added the new
TH_TNINenum value to the request property///// - info
added the new
TR_LICENSE_PLATEenum value to the request property///// - info
added the new
TR_NATIONAL_IDenum value to the request property///// - info
added the new
UK_DRIVING_LICENCEenum value to the request property///// - info
added the new
UK_PASSPORTenum value to the request property///// - info
added the new
UK_POSTCODEenum value to the request property///// - info
added the new
UK_VEHICLE_REGISTRATIONenum value to the request property///// - info
added the new
US_MBIenum value to the request property///// - info
added the new
US_NPIenum value to the request property///// - info
added the new
UUIDenum value to the request property///// - info
added the new
ZA_ID_NUMBERenum value to the request property///// - info
added the new
alertenum value to the request property/// - info
added the new
blockenum value to the request property/// - info
added the new
inject_system_messageenum value to the request property/// - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking