Preview

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

updateFunction

Update an existing 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 UpdateFunctionInput! PREVIEW

    UpdateFunctionInput fields

    id ID!

    Identifier of the function to update.

    name String

    New name for the function. Can be omitted to keep current function name.

    codeFileName String

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

    active Boolean

    New active status for the function. Can be omitted to keep current active status.

    variables [FunctionVariableInput!] PREVIEW

    New variables for the function. Can be omitted to keep current variables.

    Return Fields

    function Function PREVIEW

    Updated function if successful.

    userErrors [UpdateFunctionError!] PREVIEW

    User errors preventing the update 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.