Exemples

POST /api/report_templates/1007981727/generate
{
  "report_format": "json",
  "report_template": {}
}
200
[
  {
    "a": 1
  },
  {
    "a": 2
  }
]

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

input_values
optionel

Le hachage des valeurs d’entrée où key est le nom de l’entrée, value est la valeur de cette entrée

Validations:

  • Must be a Hash

gzip
optionel

Compresser le rapport avec gzip

Validations:

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

report_format
optionel

Report format, defaults to ‘csv’

Validations:

  • Must be one of: csv, json, yaml, html.