Chorus Views API

Create a Chorus View

POST /api/chorus_views

Parameters

Name Description
source_object_id Id of the source dataset/workfile
source_object_type 'dataset' or 'workfile'
object_name Name of the Chorus View to be created
schema_id Id of the schema to run the view in
workspace_id Id of the workspace the Chorus View belongs to
query SQL statement for the Chorus View, must start with SELECT or WITH

Request

Headers

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

Route

POST /api/chorus_views

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/"d1dfbbc96ac77f702c98d9a99e91b9d5"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=VVJiTUJ0YW95bjVMeFp1TzRSbnVSNnpOVFd4d2NtQnlVb3FWaFlXUFVieXZXdXRqVFpqYktmcXlDeUxVWTFjV3F1WTZ3MDVMYUN3bkhtbDJJaG9iSlpETk9pV0xqUlZmN0ZSai9zVllZcWtjQ3Rtd2tTNTliZnZ4RkI0Ulpsa0crK0N2NDhJalg2Vm1oRFBGL2tEbXFTZjh5YzlFUEJuRVgvZENHZUdvbFZwZWR3SVIxNnQvdkxDbmpvbUxtVVBKbEhwc2J3clNtc1lWeVNKdlZkU0pUY0NwUmNjUzJpZ2RmbmxJMW5CdG5Qdks1c3dDWGNQemRXMzhOemdOcHIzMEpObGE4blp2M0FtTWtnMmRaQWdRMkNUTEljVnNuOGFhRCsraUFDWVlaNCtZWVplcTNqUW53eU9oMEszRmpLbTB1UHBJeW1DY2RFNktNQkprRTJsUCthQldHdjNabW1tWC9OQ1pzMVJLTllYa2N4TERpT3M2NU1ieTNkdFFSY0NRTng3Z2Vod0puQ0NuY1RDV3ZROXpaeXdDSUxKWUVpU09wWU1haGw5cXdQOTVlbGZMVXRpd1RnYXFGUFlIYkVXTC0tM3YzNnFaL1ZqWTQ5YlN3RTQ3bGJhQT09--112f43d2c9429e6c51a8238c13a123eaf473d42c; path=/; HttpOnly
X-Request-Id: 047f0f47-d94f-474f-a4b5-e3472b916eda
X-Runtime: 0.440615
Content-Length: 3314

Status

201 Created

Body