Skip to main content
Creates a reusable transform for pipelines. VRL and JavaScript are compiled when the function is created, and a function with invalid source is rejected. Both runtimes are built into the binary. The call requires functions.create. Body
A syntax error answers 400, for example js syntax error: Uncaught SyntaxError: Unexpected token '}'. Test source before saving with POST /api/v1/functions/run, which takes language, source, and a sample input, and returns output. See Functions. Other function routes: GET /api/v1/functions, GET, PUT, and DELETE /api/v1/functions/{id}. The built-in presets are read-only.
Last modified on October 9, 2026