v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-224341,4072.0 MB
Function

Create Function

CreateFunction registers a new serverless function and creates its initial code commit.

post/api/v1/functions

Request body

commitMessagestring

The commit message describing the initial code submission.

descriptionstring

A description of what the function does.

displayNamestring

The human-readable name for the function.

functionType'FUNCTION_TYPE_UNSPECIFIED' | 'FUNCTION_TYPE_ANY' | 'FUNCTION_TYPE_CODE_MODE'

The type of function to create, controlling its execution environment and capabilities.

initialContentobject

Map of filename to file content for the initial code commit.

Response

Successful response