Esempi

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"
    ]
  }
}

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

report_template
richiesto

Validations:

  • Must be a Hash

report_template[name]
richiesto

Validations:

  • Must be a String

report_template[description]
opzionale , consentito nil

Validations:

  • Must be a String

report_template[template]
richiesto

Validations:

  • Must be a String

report_template[snippet]
opzionale , consentito nil

Validations:

  • Must be one of: true, false, 1, 0.

report_template[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

report_template[locked]
opzionale , consentito nil

Indica se il template รจ stato bloccato per la modifica

Validations:

  • Must be one of: true, false, 1, 0.

report_template[default]
opzionale , consentito nil

Whether or not the template is added automatically to new organizations and locations

Validations:

  • Must be one of: true, false, 1, 0.

report_template[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

report_template[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type