Create a Script Template
templates_post_scripts( script_id, name, note = NULL, ui_report_id = NULL, archived = NULL, hidden = NULL )
script_id | integer required. The id of the script that this template uses. |
---|---|
name | string required. The name of the template. |
note | string optional. A note describing what this template is used for; custom scripts created off this template will display this description. |
ui_report_id | integer optional. The id of the report that this template uses. |
archived | boolean optional. Whether the template has been archived. |
hidden | boolean optional. The hidden status of the item. |
A list containing the following elements:
integer,
boolean, If the template is public or not.
integer, The id of the script that this template uses.
string, The type of the template's backing script (e.g SQL, Container, Python, R, JavaScript)
string, The user context of the script that this template uses.
string, The name of the template.
string, The category of this template.
string, A note describing what this template is used for; custom scripts created off this template will display this description.
string,
string,
integer, The number of uses of this template.
integer, The id of the report that this template uses.
boolean, Whether this template has been audited by Civis for security vulnerability and correctness.
boolean, Whether the template has been archived.
boolean, The hidden status of the item.