Validate Extraction Schema
POST/api/v1/extraction/extraction-agents/schema/validation
Validates an extraction agent's schema definition. Returns the normalized and validated schema if valid, otherwise raises an HTTP 400.
Cookie Parameters
session: optional string
Body ParametersJSON
Returns
Validate Extraction Schema
curl https://api.cloud.llamaindex.ai/api/v1/extraction/extraction-agents/schema/validation \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
-d '{
"data_schema": {
"foo": {
"foo": "bar"
}
}
}'{
"data_schema": {
"foo": {
"foo": "bar"
}
}
}Returns Examples
{
"data_schema": {
"foo": {
"foo": "bar"
}
}
}