Skip to main content

gameModelUpsertFunction

Create or update a studio-defined function: a named, sandboxed behavior with typed parameters, declared property mutations (expressions compiled to an AST server-side, never eval'd), an optional return expression, an invoke scope, and an invoke policy (authority rule tree). Idempotent on (app, name). Requires app-admin ('manage_apps'). Returns the function plus any non-fatal static-analysis warnings.

gameModelUpsertFunction(
input: UpsertFunctionInput!
): GmFunction!

Arguments

gameModelUpsertFunction.input ● UpsertFunctionInput! non-null input

The full function definition: app, name, optional container type binding, parameters, mutations, return expression, invoke scope, and invoke-policy JSON.

Type

GmFunction object

A studio-defined function: a named, sandboxed behavior over containers (parameters, declared mutations, optional return, and an authority invoke policy).