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" ] } }
參數名字 | 描述 |
---|---|
location_id 選填 |
Set the current location context for the request Validations:
|
organization_id 選填 |
Set the current organization context for the request Validations:
|
report_template 必填 |
Validations:
|
report_template[name] 必填 |
Validations:
|
report_template[description] 選填 , 允許空值 |
Validations:
|
report_template[template] 必填 |
Validations:
|
report_template[snippet] 選填 , 允許空值 |
Validations:
|
report_template[audit_comment] 選填 , 允許空值 |
Validations:
|
report_template[locked] 選填 , 允許空值 |
範本是否鎖定並禁止進行編輯 Validations:
|
report_template[default] 選填 , 允許空值 |
Whether or not the template is added automatically to new organizations and locations Validations:
|
report_template[location_ids] 選填 , 允許空值 |
將位置取代為特定 ID Validations:
|
report_template[organization_ids] 選填 , 允許空值 |
將組織取代為特定 ID。 Validations:
|