{"type":"api","title":"Update user home Dashboard","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/e1ae91f25de62367ac175351487a12de3ae46a25/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":"Update user home Dashboard.","description":"This API allows updates to the user home Dashboard Dashlets.","operationId":"DashboardPreferencesPutReq","requestBody":{"description":"Updated specification for user 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."},"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","username":"demo","dashlets":[{"dashlet_id":"cdg_CdgDashletComponent","dashlet_title":"Data Gateway Summary","w":8,"h":4,"dashlet_component":"CdgDashletComponent","dashlet_service":"CdgExternalService","x":0,"y":0}]},"$$ref":"#/components/schemas/rbacPreferencesPut"}}},"required":true},"responses":{"200":{"description":"No Content. The request was successful and there is no additional content in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"rbacEmpty":{"type":"object","properties":{}}},"$$ref":"#/components/schemas/rbacEmpty"}}}},"201":{"description":"No Content. The request was successful and there is no additional content in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"rbacEmpty":{"type":"object","properties":{}}},"$$ref":"#/components/schemas/rbacEmpty"}}}},"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":"DashboardPreferencesPutReq","security":[{"bearerAuth":[]}],"method":"put","path":"/preferences/put"}}