Functions

Create a function.

Deploys a serverless function and returns the created function.

post/v1/functions

Request

  • Base URL: https://api.scalix.world
  • URL: https://api.scalix.world/v1/functions
  • Auth: HTTP bearer

Request body

namestring required
runtimestring required

One of node, python, go, rust.

image_refstring required
entry_pointstring nullable
handlerstring nullable
envobject nullable

Environment variables for the function (string → string).

timeout_msinteger nullable
memory_mbinteger nullable
cron_expressionstring nullable
http_triggerboolean nullable

Example request

{
  "runtime": "node"
}

Response

Function created

Changes

No recorded changes to this operation across all 1 revision of this API.