cURL
curl --request POST \ --url https://api.example.com/api/semantic-models/sql/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sql": "<string>", "limit": 50 } '
{ "valid": true, "error": "<string>", "output_columns": [] }
Validate SQL syntax without executing it.
Required Role: nx1_semantic_modeller or nx1_semantic_admin
Returns expected output columns if valid.
The access token received from the authorization server in the OAuth 2.0 flow.
Request to preview SQL execution.
SQL query to preview
Row limit
1 <= x <= 1000
SQL validation result
Response from SQL validation.
Expected output columns
Show child attributes
Was this page helpful?