Chorus Views API

Preview a Chorus View

POST /api/datasets/preview_sql

Parameters

Name Description
schema_id Id of the schema to use for the SQL command
query SQL to preview before creating a chorus view
check_id A client-generated identifier which can be used to cancel this preview later

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=aGo5YVcyNmp1T2VNZkpNa0o3V3o0WUY4QU1ueTZPei8rMGo1aWNhWTlvd3NBOCs1WEt0TnFoaEhOQ3MvRGljTjlsQmxMYWowWmJWMXRwTkM2ckgydFdlY1dESlZjYVF1RXQ1bjdteW50bXF3YnZRWTE0ZmNVOEZRYjZzV3NoakVXV29ZbmNMMVp1bmRoUHZRU0tweWpRRHQ3TUlWRSt0bEkrNlc4dnFDbUtFL2J6SERUZ0syN0dzYk1VcUU4NXhNaC9rSlR0eTRGeUhJK2tHYll0M21IWnI3WHcrbnJhRnZXempEYm1JUGVDUldaUHJ1dThnK0FPa0JjTW8ycXlTQ3VJWFprUnZhMjhpSFhpUnpzZkhqQW1iTnBINTBLTXZmc3VXQmIvNEo3V3hFaHpaQnB0K3dzdE5Sa1NUakNEbTQ5QVhwcWV4ajgwajdwZ1dpYlg0ZWZueDZMR09QZURiWmxtVVArTklRWDBJNWNzdlk0ZGIrNjNqN3ZyOStLcnhTdjB6WTlyY0dzTTMrTzkxTWFseVpQMllzNWxadzM3RnRtbkVRUWd2NENiQT0tLTNyOUNWcmdXVG0zQ1V5SnVRWTBQRmc9PQ%3D%3D--fd5cbf2f377ef3344600414016a7d4b36b429293

Route

POST /api/datasets/preview_sql

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"3699ff09b903990702add93adb9b681c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=cjJXeTFtTUE0QWJOSDFnNEdyTVpjbHB4UmdtVjBMTkhKY1Y1YVFiSHc5QUFiVXg1UUJGVnZVN1RwYjEyZlhGWTFZWVk0a04zUGtPS1owYk5NQUdtVW9Bd0pmMGFNNGdzR3krdk43NE5aVUd3dHNaSStodnpUeU05MmJlaXA2TzcxL1VXQms1TzhuT2ZJRGVHaGcxczJaSVdjeklKdGNtaWdEeDl0Q0VlRndrOTc5dnZERnZGWWxEREJDTURJMnRxMm5PM0RXRXNBUXovZnZwc1RqODR5eEtuaDBqVDBWRnA4UHkzUXZsT3lHTG52b0dlb3NLOW1uRHVucUVKQjdiVGNuSWowcjJkcklmUVd4aDNYTWwxR3AyNlFPUFdHQ0UzZ3ZRcnBxZmUxSmJ1K3BuYWFWZUh2K3BWVnJWTkJNK0ZVMXZFNy91NGlsdjJTdHBiMi91dmF4bXRHK0xwTW9zUFpHZkhoREZZcG9vVUVBZEllQU1LYzlXdEI5bnF5eHF2L0Zjb0UyQ2EramRadTJrd1VnalFVMnhhbG5jK1VjUnladkVVb1BUY0NJdTU2K3BQanZhVGNCeG5acFU0QkNDNC0tdmNwemNHUUwyYjY3QVBhQUlyNTErQT09--69a8b179c587bef2b3ec9602fee600c2a51a43c6; path=/; HttpOnly
X-Request-Id: bcf6f871-93f5-4231-b472-eacfb65d3375
X-Runtime: 0.109594
Content-Length: 228

Status

200 OK

Body