v36

OpenAPI 3.1.0raw.githubusercontent.com2026-08-0187270483.0 KB
Functions

Create a Function

Create a function.

The function type determines which configuration fields are required — see the CreateFunctionV3 discriminated union and Function types overview for the per-type contract.

The response contains both functionID and functionName. Either is a stable handle you can use elsewhere; most workflows reference functions by functionName because it's human-readable.

Naming rules

  • functionName must be unique per environment.
  • Allowed characters: letters, digits, hyphens, and underscores.
  • Names cannot be reused after deletion within the same environment for at least the retention window of the previous record.

The new function is created at versionNum: 1. Subsequent PATCH /v3/functions/{functionName} calls produce new versions — the version-1 configuration remains immutable and addressable.

post/v3/functions

Request body

OR
OR
OR
OR
OR
OR
OR
OR

Response

The request has succeeded.