Update function
PATCH
Update function

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

functionID
string
required

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

Body

name
string
code
string

The JavaScript source code executed when the function runs.

settings
object
pathOrder
string[]

An ordered list of path IDs controlling the display order of the function's exit paths.

description
string

A human-readable description of what the function does.

Response

200 - application/json

Confirms the function was updated. Only a message is returned, not the revised function, so fetch the function again to read back its saved code.

message
string
required

A human-readable message confirming the update.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.