List Script Templates
templates_list_scripts( hidden = NULL, category = NULL, limit = NULL, page_num = NULL, order = NULL, order_dir = NULL )
hidden | boolean optional. If specified to be true, returns hidden items. Defaults to false, returning non-hidden items. |
---|---|
category | string optional. A category to filter results by, one of: import, export, enhancement, model, and script |
limit | integer optional. Number of results to return. Defaults to 50. Maximum allowed is 1000. |
page_num | integer optional. Page number of the results to return. Defaults to the first page, 1. |
order | string optional. The field on which to order the result set. Defaults to name. Must be one of: name, updated_at, created_at. |
order_dir | string optional. Direction in which to sort, either asc (ascending) or desc (descending) defaulting to asc. |
An array containing the following fields:
integer,
boolean, If the template is public or not.
integer, The id of the script that this template uses.
string, The user context of the script that this template uses.
string, The name of the template.
string, The category of this template.
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.