cURL
curl --request POST \ --url https://api.camelai.com/api/v1/reference-queries/{id}/validate/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "query": "<string>", "title": "<string>", "connection_id": 123, "source_type": "USER" }'
{ "valid": true, "error": "<string>" }
Validate that a query is syntactically correct for the associated connections.
JWT or API key authentication using Bearer scheme
Serializer for Reference Query model instances.
The response is of type object.
object
Was this page helpful?