Create Query Lambda
POST {{baseUrl}}/v1/orgs/self/ws/:workspace/lambdas
Create a Query Lambda in given workspace.
Request Body
{"name"=>"myQueryLambda", "sql"=>{"query"=>"SELECT 'Foo'", "default_parameters"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "description"=>"production version foo"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"data":{"workspace":"commons","created_by":"..@rockset.com","created_at":"2001-08-28T00:23:41Z","name":"myQuery","version":"acb99feg92bcaf","description":"production version foo","sql":{"query":"SELECT 'Foo'","default_parameters":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"collections":["ut fugiat laboris in","dolore ea irure"],"state":"ACTIVE","stats":{"last_executed":"2001-08-28T00:23:41Z","last_executed_by":"...@rockset.com","last_execution_error":"2001-08-28T00:23:41Z","last_execution_error_message":"[error message]"}}}