restoreScriptVersion
Topics: Scripting
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.
Exact field 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"])Declared on Mutation. Access is checked by the platform for each operation.