← API reference
Mutation / scripting

upsertScript

Create or update a script. Requires script:write permission.

Arguments

Script data

Returns UpsertScriptPayload!

Explore in a view

Scripting
View exact SDL
"""Create or update a script. Requires script:write permission."""
upsertScript(
  """Script data"""
  input: UpsertScriptInput!
): UpsertScriptPayload! @topic(names: ["scripting"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.