Web API for Dashboards: Difference between revisions
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
GET api/dashboards | GET api/dashboards | ||
</pre> | </pre> | ||
Gets a list of all dashboards in the system (if no parameter is provided). Supports optional query parameter ''projectId'' which is project id where to get dashboards from. | Gets a list of all dashboards in the system (if no parameter is provided). Supports optional query parameter ''projectId'' which is project id where to get dashboards from. | ||
Line 30: | Line 30: | ||
</pre> | </pre> | ||
Deletes a dashboard with given id. If the dashboard doesn't exist, not found error is returned. If current user has no rights to delete the dashboard, unauthorized error is returned. | Deletes a dashboard with given id. If the dashboard doesn't exist, not found error is returned. If current user has no rights to delete the dashboard, unauthorized error is returned. | ||
[[Category: QPR ProcessAnalyzer]] | [[Category: QPR ProcessAnalyzer]] |
Latest revision as of 19:21, 28 November 2024
Dashboards API is used to create dashboards, delete dashboards and edit dashboards properties.
Note that the Workspace Elements API supports also dashboards.
Methods
The dashboards API has the following methods.
GET api/dashboards
Gets a list of all dashboards in the system (if no parameter is provided). Supports optional query parameter projectId which is project id where to get dashboards from.
GET api/dashboards/{id}
Gets a dashboard entity by the dashboard id. If dashboard doesn't exist, not found error is returned. If current user has no access to the dashboard, unauthorized error is returned.
POST api/dashboards
Creates a new empty dashboard. Takes the dashboard entity in the body (read-only properties are ignored). Returns the created dashboard entity. If current user has no rights to create dashboard, unauthorized error is returned.
PUT api/dashboards/{id}
Updates properties of an existing dashboard with the given id. If dashboard doesn't exist, not found error is returned. If current user has no rights to modify the dashboard, unauthorized error is returned.
DELETE api/dashboards/{id}
Deletes a dashboard with given id. If the dashboard doesn't exist, not found error is returned. If current user has no rights to delete the dashboard, unauthorized error is returned.