List Script Templates

templates_list_scripts(hidden = NULL, category = NULL, limit = NULL,
  page_num = NULL, order = NULL, order_dir = NULL)

Arguments

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.

Value

An array containing the following fields:

id

integer,

scriptId

integer, The id of the script that this template uses.

userContext

string, The user context of the script that this template uses.

name

string, The name of the template.

category

string, The category of this template.

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.