cURL
curl --request POST \ --url https://api.example.com/api/dashboards \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "name": "<string>", "description": "<string>", "organizationId": "<string>", "widgets": [ { "reportId": "<string>", "layout": { "x": 1, "y": 1, "w": 2, "h": 2 }, "config": {} } ] } '
{ "id": "<string>", "userId": "<string>", "name": "<string>", "widgets": [ { "id": "<string>", "reportId": "<string>", "layout": { "x": 1, "y": 1, "w": 2, "h": 2 }, "config": {} } ], "createdAt": "<string>", "updatedAt": "<string>", "organizationId": "<string>", "description": "<string>" }
Creates a new dashboard with an optional initial set of widgets.
1
Show child attributes
Default Response
Was this page helpful?