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" ] } }
Nome parâmetro | Descrição |
---|---|
location_id opcional |
Set the current location context for the request Validations:
|
organization_id opcional |
Set the current organization context for the request Validations:
|
report_template requerido |
Validations:
|
report_template[name] requerido |
Validations:
|
report_template[description] opcional , nulo permitido |
Validations:
|
report_template[template] requerido |
Validations:
|
report_template[snippet] opcional , nulo permitido |
Validations:
|
report_template[audit_comment] opcional , nulo permitido |
Validations:
|
report_template[locked] opcional , nulo permitido |
Se deve ou não o template está bloqueado para edição Validations:
|
report_template[default] opcional , nulo permitido |
Define se o modelo é ou não adicionado automaticamente a novas organizações e locais Validations:
|
report_template[location_ids] opcional , nulo permitido |
SUBSTITUIR localizações dadas com ids Validations:
|
report_template[organization_ids] opcional , nulo permitido |
SUBSTITUIR organizações dadas com ids Validations:
|