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" ] } }
Nazwa parametru | Opis |
---|---|
location_id opcjonalny |
Set the current location context for the request Validations:
|
organization_id opcjonalny |
Set the current organization context for the request Validations:
|
report_template wymagany |
Validations:
|
report_template[name] wymagany |
Validations:
|
report_template[description] opcjonalny , nil dopuszczalny |
Validations:
|
report_template[template] wymagany |
Validations:
|
report_template[snippet] opcjonalny , nil dopuszczalny |
Validations:
|
report_template[audit_comment] opcjonalny , nil dopuszczalny |
Validations:
|
report_template[locked] opcjonalny , nil dopuszczalny |
Czy szablon jest zablokowany do edycji Validations:
|
report_template[default] opcjonalny , nil dopuszczalny |
Whether or not the template is added automatically to new organizations and locations Validations:
|
report_template[location_ids] opcjonalny , nil dopuszczalny |
ZMIEŃ lokalizacje o podanym id Validations:
|
report_template[organization_ids] opcjonalny , nil dopuszczalny |
ZMIEŃ organizacje o podanym id Validations:
|