scripts_patch {civis} | R Documentation |
Update a script
Description
Update a script
Usage
scripts_patch(
id,
name = NULL,
sql = NULL,
params = NULL,
arguments = NULL,
template_script_id = NULL,
schedule = NULL,
notifications = NULL,
parent_id = NULL,
running_as_id = NULL
)
Arguments
id |
integer required. The ID for the script. |
name |
string optional. The name of the script. |
sql |
string optional. The raw SQL query for the script. |
params |
array optional. An array containing the following fields:
|
arguments |
list optional. Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. |
template_script_id |
integer optional. The ID of the template script, if any. A script cannot both have a template script and be a template for other scripts. |
schedule |
list optional. A list containing the following elements:
|
notifications |
list optional. A list containing the following elements:
|
parent_id |
integer optional. The ID of the parent job that will trigger this script |
running_as_id |
integer optional. The ID of the runner of this script. |
Value
A list containing the following elements:
id |
integer, The ID for the script. |
name |
string, The name of the script. |
type |
string, The type of script. |
createdAt |
string, The time this script was created. |
updatedAt |
string, The time this script was last updated. |
author |
list, A list containing the following elements:
|
state |
string, The status of the script's last run. |
finishedAt |
string, The time that the script's last run finished. |
category |
string, The category of the script. |
projects |
array, An array containing the following fields:
|
parentId |
integer, The ID of the parent job that will trigger this script |
userContext |
string, "runner" or "author", who to execute the script as when run as a template. |
params |
array, An array containing the following fields:
|
arguments |
list, Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. |
isTemplate |
boolean, Whether others scripts use this one as a template. |
publishedAsTemplateId |
integer, The ID of the template that this script is backing. |
fromTemplateId |
integer, The ID of the template this script uses, if any. |
templateDependentsCount |
integer, How many other scripts use this one as a template. |
templateScriptName |
string, The name of the template script. |
links |
list, A list containing the following elements:
|
schedule |
list, A list containing the following elements:
|
notifications |
list, A list containing the following elements:
|
runningAs |
list, A list containing the following elements:
|
nextRunAt |
string, The time of the next scheduled run. |
timeZone |
string, The time zone of this script. |
lastRun |
list, A list containing the following elements:
|
myPermissionLevel |
string, Your permission level on the object. One of "read", "write", or "manage". |
hidden |
boolean, The hidden status of the item. |
targetProjectId |
integer, Target project to which script outputs will be added. |
archived |
string, The archival status of the requested item(s). |
sql |
string, The raw SQL query for the script. |
expandedArguments |
list, Expanded arguments for use in injecting into different environments. |
templateScriptId |
integer, The ID of the template script, if any. |