{"type":"api","title":"List user home Dashboard","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"description":"Crosswork Role-based Access Control APIs","license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"1.0.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/aaa/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '."}}},"spec":{"summary":"List user home Dashboard.","description":"This API returns the user's home Dashboard information.","operationId":"DashboardPreferencesPost","responses":{"200":{"description":"Returns the dashboard data as json format.","schema":{"type":"object","properties":{"dashboard_id":{"type":"string","description":"The unique identifier of a specific dashboard for which preferences are being requested or set."},"application_id":{"type":"string","description":"The unique identifier of the application to which the preferences belong."},"dashlets":{"type":"array","items":{"type":"object","properties":{"dashlet_id":{"type":"string","description":"A unique identifier for this specific dashlet."},"dashlet_title":{"type":"string","description":"The human-readable title or name of the dashlet, displayed in the UI."},"w":{"type":"number","description":"The width of the dashlet in grid units, representing its horizontal size on the dashboard."},"h":{"type":"number","description":"The height of the dashlet in grid units, representing its vertical size on the dashboard."},"dashlet_component":{"type":"string","description":"The name or identifier of the UI component responsible for rendering this dashlet."},"dashlet_service":{"type":"string","description":"The backend service or API endpoint that provides data for this dashlet."},"x":{"type":"number","description":"The X-coordinate (horizontal position) of the dashlet on the dashboard grid."},"y":{"type":"number","description":"The Y-coordinate (vertical position) of the dashlet on the dashboard grid."}},"$$ref":"#/definitions/rbacDashlet"},"$$ref":"#/definitions/rbacDashlets"}},"example":{"dashboard_id":"infra_capp_infraDashboard_admin","application_id":"infra_capp","dashlets":[{"dashlet_id":"inventory_DeviceStatusDashletComponent","dashlet_title":"Device Status","w":4,"h":4,"dashlet_component":"DeviceStatusDashletComponent","dashlet_service":"DlmApiService","x":0,"y":0}]},"$$ref":"#/definitions/rbacPreferencesResponse"}},"400":{"description":"Invalid value for Global idle timeout, Possible values can be 10/15/30/60/120/480 minutes"}},"parameters":[{"name":"body","description":"Create a list of home dashboard.","in":"body","required":true,"schema":{"type":"object","properties":{"dashboard_id":{"type":"string","description":"The unique identifier of a specific dashboard for which preferences are being requested or set."},"application_id":{"type":"string","description":"The unique identifier of the application to which the preferences belong."},"username":{"type":"string","description":"The username of the user whose preferences are being requested or set."}},"example":{"dashboard_id":"infra_capp_infraDashboard_demoadmin","application_id":"infra_capp","username":"demo"},"$$ref":"#/definitions/rbacPreferencesReq"}}],"tags":["rbac"],"__originalOperationId":"DashboardPreferencesPost","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"post","path":"/preferences/query"}}