POST /api/report_templates/import { "report_template": { "name": "report_template5", "template": "b" } } 201 { "template": "b", "snippet": false, "description": null, "id": 1007981710, "name": "report_template5", "template_kind_id": null, "created_at": "2024-02-22T16:16:11.900Z", "updated_at": "2024-02-22T16:16:11.905Z", "locked": false, "default": false, "vendor": null, "os_family": null, "job_category": "Miscellaneous", "provider_type": null, "description_format": null, "execution_timeout_interval": null }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
report_template
required |
Validations:
|
report_template[name]
optional |
template name Validations:
|
report_template[template]
optional |
template contents including metadata Validations:
|
report_template[location_ids]
optional , nil allowed |
REPLACE locations with given ids Validations:
|
report_template[organization_ids]
optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
options
optional |
Validations:
|
options[force]
optional , nil allowed |
use if you want update locked templates Validations:
|
options[associate]
optional , nil allowed |
determines when the template should associate objects based on metadata, new means only when new template is being created, always means both for new and existing template which is only being updated, never ignores metadata Validations:
|
options[lock]
optional , nil allowed |
lock imported templates (false by default) Validations:
|
options[default]
optional , nil allowed |
makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default) Validations:
|