POST /api/report_templates { "report_template": { "name": "report_template_test", "template": "" } } 422 { "error": { "id": null, "errors": { "template": [ "can't be blank" ] }, "full_messages": [ "Template can't be blank" ] } }
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] Required |
Validations:
|
report_template[description] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
report_template[template] Required |
Validations:
|
report_template[snippet] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
report_template[audit_comment] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
report_template[locked] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
Whether or not the template is locked for editing Validations:
|
report_template[default] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
Whether or not the template is added automatically to new organizations and locations Validations:
|
report_template[location_ids] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
REPLACE locations with given ids Validations:
|
report_template[organization_ids] Optional , <span class="translation_missing" title="translation missing: gl.apipie.nil_allowed">Nil Allowed</span> |
REPLACE organizations with given ids. Validations:
|