Generate Report

POST /api/rest/v4/data/reports/generate

Initiates 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

NameRequired?ParamTypeTypeDescription
templateIdYesbodyintThe ID of the template to generate a report from
removeEmptyTablesNobodybooleanSpecifies whether to remove empty tables from report.
entriesConditionallybodyarrayArray of IDs to be supplied for entry reports only
userIdsConditionallybodyarrayArray of UserIds to be supplied for user reports only
filtersNobodyobjectSpecify 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"
}