Retrieve Widgets from a Specific Dashboard
GET/visualization/dashboards/:id
This endpoint retrieves all widgets associated with a specific dashboard, identified by its unique dashboard ID. The response includes the widget IDs and details of each widget within the dashboard, allowing for subsequent metric retrieval operations on individual widgets.
Request
Path Parameters
id integerrequired
The unique ID of the dashboard for which the widgets need to be retrieved.
Responses
- 200
- 400
- 403
- 500
Successfully retrieved the list of widgets for the specified dashboard
- application/json
- Schema
- Example (from schema)
Schema
- Dashboard_Get_By_ID_Response
- Dashboard_Get_By_ID_Response
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
oneOf
response-code integer
status string
result object[]
dashboard.name string
dashboard.category string
dashboard.access.type string
dashboard.users integer[]
dashboard.context object
dashboard.widgets object[]
id integer
x integer
y integer
h integer
w integer
id integer
response-code integer
status string
result object[]
dashboard.name string
dashboard.category string
dashboard.access.type string
dashboard.users integer[]
dashboard.context object
dashboard.widgets object[]
id integer
x integer
y integer
h integer
w integer
id integer
{}
Invalid dashboard ID provided. Please check the ID and try again
- application/json
- Schema
- Example (from schema)
Schema
response-code integer
status string
message string
error.code string
{
"response-code": 400,
"status": "fail",
"message": "Bad request",
"error.code": "MD031"
}
Access to the specified dashboard is forbidden. The user might not have the necessary permissions.
- application/json
- Schema
- Example (from schema)
Schema
response-code integer
message string
error.code string
{
"response-code": 403,
"message": "Unauthorized access: Client is not allowed to access API",
"error.code": "MD022"
}
An internal server error occurred while retrieving the widgets for the specified dashboard.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
result object[]
response-code integer
status string
message string
error.code string
error string
{
"result": [
{
"response-code": 500,
"status": "fail",
"message": "Internal server exception, Possible reason: Cannot invoke \"String.length()\" because \"content\" is null",
"error.code": "MD031",
"error": "io.vertx.core.json.jackson.DatabindCodec.createParser(DatabindCodec.java:116)\n\tat io.vertx.core.json.jackson.DatabindCodec.fromString(DatabindCodec.java:90)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:83)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:95)\n\tat"
}
]
}
Loading...