The reports are generated asynchronously. If mail_to is not given, action returns an url to get resulting report from (see report_data).
POST /api/report_templates/:id/schedule_report/ 200 { "job_id": UNIQUE-REPORT-GENERATING-JOB-UUID "data_url": "/api/v2/report_templates/1/report_data/UNIQUE-REPORT-GENERATING-JOB-UUID" }
参数名字 | 描述 |
---|---|
location_id 选填 |
Set the current location context for the request Validations:
|
organization_id 选填 |
Set the current organization context for the request Validations:
|
id 必填 |
Validations:
|
input_values 选填 |
哈希输入值,其中关键字是输入名称,值是这个输入 Validations:
|
gzip 选填 |
Compress the report using gzip Validations:
|
mail_to 选填 |
If set, scheduled report will be delivered via e-mail. Use ',' to separate multiple email addresses. Validations:
|
generate_at 选填 |
UTC time to generate report at Validations:
|
report_format 选填 |
Report format, defaults to 'csv' Validations:
|