View source: R/generated_client.R
| templates_post_scripts | R Documentation | 
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. | 
| boolean optional. The hidden status of the item. | 
A list containing the following elements:
| id | integer, | 
| public | boolean, If the template is public or not. | 
| scriptId | integer, The id of the script that this template uses. | 
| scriptType | string, The type of the template's backing script (e.g SQL, Container, Python, R, JavaScript) | 
| userContext | string, The user context of the script that this template uses. | 
| params | array, An array containing the following fields: 
 | 
| name | string, The name of the template. | 
| category | string, The category of this template. | 
| note | string, A note describing what this template is used for; custom scripts created off this template will display this description. | 
| createdAt | string, | 
| updatedAt | string, | 
| useCount | integer, The number of uses of this template. | 
| uiReportId | integer, The id of the report that this template uses. | 
| techReviewed | boolean, Whether this template has been audited by Civis for security vulnerability and correctness. | 
| archived | boolean, Whether the template has been archived. | 
| hidden | boolean, The hidden status of the item. | 
| author | list, A list containing the following elements: 
 | 
| myPermissionLevel | string, Your permission level on the object. One of "read", "write", or "manage". | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.