Mutation / scripting
restoreScriptVersion
Put an old version's source back on the script. Appends a new version rather than rewinding history. The name and role are not restored, only the source. Requires script:write permission.
Arguments
scriptIdScriptID!Script to restore
versionInt!Version whose source to put back
Returns RestoreScriptVersionPayload!
Explore in a view
View exact SDL
"""
Put an old version's source back on the script. Appends a new version rather than rewinding history. The name and role are not restored, only the source. Requires script:write permission.
"""
restoreScriptVersion(
"""Script to restore"""
scriptId: ScriptID!
"""Version whose source to put back"""
version: Int!
): RestoreScriptVersionPayload! @topic(names: ["scripting"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.