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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;workspace&quot;:&quot;commons&quot;,&quot;created_by&quot;:&quot;..@rockset.com&quot;,&quot;created_at&quot;:&quot;2001-08-28T00:23:41Z&quot;,&quot;name&quot;:&quot;myQuery&quot;,&quot;version&quot;:&quot;acb99feg92bcaf&quot;,&quot;description&quot;:&quot;production version foo&quot;,&quot;sql&quot;:{&quot;query&quot;:&quot;SELECT &#39;Foo&#39;&quot;,&quot;default_parameters&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;collections&quot;:[&quot;ut fugiat laboris in&quot;,&quot;dolore ea irure&quot;],&quot;state&quot;:&quot;ACTIVE&quot;,&quot;stats&quot;:{&quot;last_executed&quot;:&quot;2001-08-28T00:23:41Z&quot;,&quot;last_executed_by&quot;:&quot;...@rockset.com&quot;,&quot;last_execution_error&quot;:&quot;2001-08-28T00:23:41Z&quot;,&quot;last_execution_error_message&quot;:&quot;[error message]&quot;}}}