Preview

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

createAccountFunction

Create an account-scoped function.

This page contains

    Authorization Rules

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

    Scopes

    ROLE_SYS_ADMIN

    Arguments

    input CreateAccountFunctionInput! PREVIEW

    CreateAccountFunctionInput fields

    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 [CreateAccountFunctionError!] 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.