APIPolicies

Validate CEL expression

Validate a CEL expression.

POST/policies/cel/validate

Validate a CEL expression.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/policies/cel/validate" \  -H "Content-Type: application/json" \  -d '{    "expression": "string"  }'
{  "valid": true,  "error": "string",  "position": 0}
{  "code": "bad_request",  "message": "string",  "validation_errors": [    {      "field": "string",      "message": "string",      "rule": "string"    }  ]}