guardrails

Validate Blocked Words File

Validate a blocked_words YAML file content.

Args: request: Dictionary with 'file_content' key containing the YAML string

Returns: Dictionary with 'valid' boolean and either 'message'/'errors' depending on result

Example Request:

{
    "file_content": "blocked_words:\n  - keyword: \"test\"\n    action: \"BLOCK\""
}

Example Success Response:

{
    "valid": true,
    "message": "Valid YAML file with 2 blocked words"
}

Example Error Response:

{
    "valid": false,
    "errors": ["Entry 0: missing 'action' field"]
}
post/guardrails/validate_blocked_words_file

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/guardrails/validate_blocked_words_file
  • Auth: API key in header x-litellm-api-key

Request body

object required

Response

Successful Response

unknown required

Changes

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