All the endpoints that can be called on the Statisticsv2 controller.
All the endpoints require the API_STATISTICS permission, except for:
Which require the DASHBOARD_CUD permission.
options
get
Returns the options available to the statistics showQuery and showData.
dashboard
get
Returns all the dashboard data by the dashboard ID.
dashboard
post
dashboard
put
Updates this dashboard's name.
Body
namestring · min: 1OptionalDefault: ""Pattern: ^[0-9a-zA-Z\' :+*]+$
dashboardDelete
post
Deletes this dashboard and its widgets.
Body
dashboards
get
Returns all the dashboards.
get
Returns all the data of this widget.
showData
get
Returns all data of this widget to show.
Widget data specifics can be added how is shown in the example. Adjust to your own needs.
filterUsers[]string · min: 1Optional filterUserID[]numberOptionalID of the user to be filtered out.
nocachestringOptionalDisables caching if sent with request.
debugstringOptionalEnables debug mode and disables caching if sent with request.
widget
post
Creates a new widget.
See the example for how to write the dataURL.
Body
dashboardIDnumberRequired
titlestring · min: 1OptionalDefault: ""Pattern: ^[0-9a-zA-Z :+*\-]+$
dataURLstring · min: 1OptionalIdentical to the way showData allows these requested parameters in the URL.
Default: ""Pattern: ^[a-zA-Z0-9\.\:\/\-\ \=\?\&\[\]\_\:\+\*\@]+$ viewTypestring · min: 1OptionalDefault: tablePattern: ^([a-zA-Z]+)$
fontSizeTitlenumberOptional
fontSizeDatanumberOptional
pivotOnColumnnumberOptionalDefault: 0
ticketArchivedbooleanOptionalDefault: false
position_xnumberOptionalDefault: 0
position_ynumberOptionalDefault: 0
widthnumberOptionalDefault: 5
heightnumberOptionalDefault: 5
put
Updates an existing widget.
See the example for how to write the dataURL. You need to fill in all the data, not just the changed data.
Body
titlestring · min: 1OptionalDefault: ""Pattern: ^[0-9a-zA-Z :+*\-]+$
dataURLstring · min: 1OptionalDefault: ""Pattern: ^[a-zA-Z0-9\.\:\/\-\ \=\?\&\[\]\_\:\+\*\@]+$
viewTypestring · min: 1OptionalDefault: tablePattern: ^([a-zA-Z]+)$
fontSizeTitlenumberOptional
fontSizeDatanumberOptional
pivotOnColumnnumberOptionalDefault: 0
ticketArchivedbooleanOptionalDefault: false
widgetDelete
post
Body
widgetPosition
post
Updates this widget's position.
Body
put
Sets the setting to automatically refresh this widget on or off.
Body
statenumber · max: 1Required
get
Returns the info on where this widget's data is being sent to.
widgetSendOptions
post
Creates a setting to send all widget data to an email.
Body
sendFrequencystring · min: 1RequiredThe interval you want to send at.
Pattern: ^([0-9a-zA-Z\ \:\*]+)$ toAddressesstring · min: 4 · max: 500OptionalHas to be an email address or multiple email addresses comma-separated
Default: ""Pattern: ^([a-zA-Z0-9 @+-_.,]+)$ downloadData
get
Returns and downloads all data of this widget, or of the data you sent along with the request.
You either need to send the widget/panel ID, or the data in such a way provided in the example.
filterUsers[]string · min: 1Optional filterUserID[]numberOptionalID of the user to be filtered out.
nocachestringOptionalDisables caching if sent with request.
debugstringOptionalEnables debug mode and disables caching if sent with request.
Last updated