Generate Report
POST /api/rest/v4/data/reports/generateInitiates the generation request of a report. A successful API call submits the request to the queue and returns a requestID, which is used to ultimately fetch the report. A successful generation request does not necessarily indicate a successful generation of the report.
Params
| Name | Required? | ParamType | Type | Description |
|---|---|---|---|---|
| templateId | Yes | body | int | The ID of the template to generate a report from |
| removeEmptyTables | No | body | boolean | Specifies whether to remove empty tables from report. |
| entries | Conditionally | body | array | Array of IDs to be supplied for entry reports only |
| userIds | Conditionally | body | array | Array of UserIds to be supplied for user reports only |
| filters | No | body | object | Specify filters as necessary. If absent, defaults apply |
Example
Request
POST {{host}}/api/rest/v4/data/reports/generate
Authorization: Bearer {{token}}
{
"templateId": 0,
"removeEmptyTable": false,
"entries": [
18359, 8293, 2589
]
}
Response
200 OK
{
"requestID": "a294ed2j-019f-3117-badb-519f926b81f9",
"status": "pending"
}