โ† API reference
Query / scripting

getScriptVersion

Fetch one version of a script. Requires script:read permission.

Arguments

scriptIdScriptID!

Script the version belongs to

versionInt!

Version number to fetch

Returns ScriptVersionState

Scalar fields at a glance

scriptIdScriptID!
versionInt!
nameString!
contentString!
โ†— View the complete ScriptVersionState type

Explore in a view

Scripting
View exact SDL
"""Fetch one version of a script. Requires script:read permission."""
getScriptVersion(
  """Script the version belongs to"""
  scriptId: ScriptID!
  """Version number to fetch"""
  version: Int!
): ScriptVersionState @topic(names: ["scripting"])

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