script id
name of the script
script object
a status object
Delete script
script id
promise that resolves to a script object
Delete script by name
script name
a promise that resolves to a script object
Delete all non-default scripts
OptionalresultCallback: ResultCallback<ScriptSkeleton>Optional callback to process individual results
Optionalfilter: ScriptFilterOptional script filter
a promise that resolves to an array of script objects
Export script by id
script uuid
Optionaloptions: ScriptExportOptionsscript export options
a promise that resolved to a ScriptExportInterface object
Export script by name
script name
Optionaloptions: ScriptExportOptionsscript export options
a promise that resolved to a ScriptExportInterface object
Export all scripts
Optionaloptions: ScriptExportOptionsscript export options
OptionalresultCallback: ResultCallback<ScriptSkeleton>Optional callback to process individual results
a promise that resolved to a ScriptExportInterface object
Get the names of library scripts required by the input script object
the script object
an array of required library script names
Import scripts
Optional id of script. If supplied, only the script of that id is imported. Takes priority over scriptName if both are provided.
Optional name of script. If supplied, only the script of that name is imported
Script import data
Optionaloptions: ScriptImportOptionsScript import options
Optionalvalidate: booleanIf true, validates Javascript scripts to ensure no errors exist in them. Default: false
OptionalresultCallback: ResultCallback<ScriptSkeleton>Optional callback to process individual results
the imported scripts
List scripts with only lightweight identifying fields (no script body)
Optionalfilter: ScriptFilterOptional script filter
a promise that resolves to an array of lightweight script summaries
Read script
script id
promise that resolves to a script object
Read script by name
name of the script
promise that resolves to a script object
Read all scripts
Optionalfilter: ScriptFilterOptional script filter
a promise that resolves to an array of script objects
Read a script's plain-text source only, without the surrounding metadata
script id
the decoded script source
Read a script's plain-text source only, by name, without the surrounding metadata
name of the script
the decoded script source
Create or update script
script id
script object
a status object
Update only a script's source, preserving all other metadata
script id
new plain-text script source
the updated script object
Create script