All the endpoints that can be called on the Statisticsv2 controller.
All the endpoints require the API_STATISTICS
permission, except for:
POST
dashboardDelete
PUT
dashboard
Which require the DASHBOARD_CUD
permission.
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.
User to be filtered out.
ID of the user to be filtered out.
Disables caching if sent with request.
Enables debug mode and disables caching if sent with request.
ID of the panel/widget.
showData example
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.
User to be filtered out.
ID of the user to be filtered out.
Disables caching if sent with request.
Enables debug mode and disables caching if sent with request.
ID of the panel/widget.
downloadData example
Creates a new widget.
See the example for how to write the dataURL.
""
Pattern: ^[0-9a-zA-Z :+*\-]+$
Identical to the way showData
allows these requested parameters in the URL.
""
Pattern: ^[a-zA-Z0-9\.\:\/\-\ \=\?\&\[\]\_\:\+\*\@]+$
table
Pattern: ^([a-zA-Z]+)$
0
false
0
0
5
5
widget example
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.
""
Pattern: ^[0-9a-zA-Z :+*\-]+$
""
Pattern: ^[a-zA-Z0-9\.\:\/\-\ \=\?\&\[\]\_\:\+\*\@]+$
table
Pattern: ^([a-zA-Z]+)$
0
false
widget example
Creates a setting to send all widget data to an email.
The interval you want to send at.
^([0-9a-zA-Z\ \:\*]+)$
Has to be an email address or multiple email addresses comma-separated
""
Pattern: ^([a-zA-Z0-9 @+-_.,]+)$
No content