Templates

class Templates(session_kwargs, client, return_type='raw')

Civis API /templates endpoint.

Methods

delete_reports_shares_groups(id, group_id)

Revoke the permissions a group has on this object

delete_reports_shares_users(id, user_id)

Revoke the permissions a user has on this object

delete_scripts_projects(id, project_id)

Remove a Script Template from a project

delete_scripts_shares_groups(id, group_id)

Revoke the permissions a group has on this object

delete_scripts_shares_users(id, user_id)

Revoke the permissions a user has on this object

get_reports(id)

Get a Report Template

get_scripts(id)

Get a Script Template

list_reports(*[, hidden, author, category, ...])

List Report Templates

list_reports_dependencies(id, *[, user_id])

List dependent objects for this object

list_reports_shares(id)

List users and groups permissioned on this object

list_scripts(*[, hidden, author, category, ...])

List Script Templates

list_scripts_dependencies(id, *[, user_id])

List dependent objects for this object

list_scripts_projects(id, *[, hidden])

List the projects a Script Template belongs to

list_scripts_shares(id)

List users and groups permissioned on this object

patch_reports(id, *[, name, category, ...])

Update some attributes of this Report Template

patch_scripts(id, *[, name, note, ...])

Update some attributes of this Script Template

post_reports(name, code_body, *[, category, ...])

Create a Report Template

post_scripts(script_id, name, *[, note, ...])

Create a Script Template

put_reports(id, name, code_body, *[, ...])

Replace all attributes of this Report Template

put_reports_shares_groups(id, group_ids, ...)

Set the permissions groups has on this object

put_reports_shares_users(id, user_ids, ...)

Set the permissions users have on this object

put_reports_transfer(id, user_id, ...[, ...])

Transfer ownership of this object to another user

put_scripts(id, name, *[, note, ...])

Replace all attributes of this Script Template

put_scripts_projects(id, project_id)

Add a Script Template to a project

put_scripts_shares_groups(id, group_ids, ...)

Set the permissions groups has on this object

put_scripts_shares_users(id, user_ids, ...)

Set the permissions users have on this object

put_scripts_transfer(id, user_id, ...[, ...])

Transfer ownership of this object to another user