functions

Create a new Function

Create a new Function.

post/groups/{groupId}/apps/{appId}/functions

Request body

can_evaluateobject

A JSON expression that evaluates to true if the Function is allowed to run in response to an incoming request.

namestring required

A unique name for the Function.

privateboolean required

If true, the function is hidden from client applications. You can still call a private function from JSON expressions and other functions, including incoming webhooks and triggers.

sourcestring required

The stringified source code for the function. The code must be valid ES6.

run_as_systemboolean required

If true, the function executes with full privileges, bypassing rules on all services.

Response

The function was successfully created.

_idstring

Unique identifier for the function.

namestring

Name for the function specified in the name field of the request.

Changes