Skip to content

Create or update query function

Endpoint: POST /api/{organization}/functions/{name}

Query function used in query SQL. you can use it to extract some new field from exist fields.

Request

{
    "function": "function(col1 , col2) return col1 .. \" \" .. col2 end"
}

Description

Field name Data type Default value Description
function string - function body

Currently, we only support Lua as a functional language. JavaScript and WebAssembly are under development and will be supported soon.

Response

{
    "code": 200,
    "message": "Function saved successfully"
}