User APIs/Dashboards (Custom Widget Layouts)
Create Dashboard
POST
/user/dashboardsBearer token required
ADMIN | USERContent-Type:
application/jsonRequest Example
JSON
{
"name": "Fleet Overview",
"layout": "GRID",
"widgets": [
{
"widgetType": "FLEET_STATUS",
"position": {
"x": 0,
"y": 0,
"w": 6,
"h": 4
}
}
]
}Code Examples
curl -X POST 'https://<your-domain>:3001/user/dashboards' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Fleet Overview",
"layout": "GRID",
"widgets": [
{
"widgetType": "FLEET_STATUS",
"position": {
"x": 0,
"y": 0,
"w": 6,
"h": 4
}
}
]
}'