{"type":"api","title":"List user home Dashboard","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/21eb1d117a633ad17a20da730c09f519133958a8/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","description":"Crosswork Role-based Access Control APIs","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"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"}},"openapi":"3.0.1","servers":[{"url":"https://{cw_ip}:30603/crosswork/aaa/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '.","name":"Authorization","in":"header"}}},"spec":{"tags":["rbac"],"summary":"List user home Dashboard.","description":"This API returns the user's home Dashboard information.","operationId":"DashboardPreferencesPost","requestBody":{"description":"Create a list of home dashboard.","content":{"application/json":{"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":"#/components/schemas/rbacPreferencesReq"}}},"required":true},"responses":{"200":{"description":"Returns the dashboard data as json format.","content":{"application/json":{"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":"#/components/schemas/rbacDashlet"},"$$ref":"#/components/schemas/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":"#/components/schemas/rbacPreferencesResponse"}}}},"400":{"description":"Invalid value for Global idle timeout, Possible values can be 10/15/30/60/120/480 minutes","content":{}}},"x-codegen-request-body-name":"body","__originalOperationId":"DashboardPreferencesPost","security":[{"bearerAuth":[]}],"method":"post","path":"/preferences/query"}}