Preview

createFunction is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

createFunction

Create a function.

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_CHANNEL_ADMIN

    ROLE_PARTNER

    Arguments

    input CreateFunctionInput! PREVIEW

    CreateFunctionInput fields

    tenant String

    Tenant to which the function belongs.

    name String!

    Name for the function.

    codeFileName String!

    Name of the file containing the function's source code and implementation

    active Boolean

    Whether the function is active or not. An inactive function cannot be executed. Defaults to true.

    variables [FunctionVariableInput!] PREVIEW

    Variables to pass to the function during execution.

    Return Fields

    function Function PREVIEW

    Created function if it was successful.

    userErrors [CreateFunctionError!] PREVIEW

    User errors preventing the creation of the function.

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.