Initialize Dashboards Endpoint
POST
/api/v1/dashboards/initialize
const url = 'https://example.com/api/v1/dashboards/initialize';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","layout":{"cards":[{"id":"example","x":1,"y":1,"w":1,"h":1}],"hidden":["example"]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/dashboards/initialize \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "layout": { "cards": [ { "id": "example", "x": 1, "y": 1, "w": 1, "h": 1 } ], "hidden": [ "example" ] } }'201 with the new list when the caller had no dashboard, else 200 with the existing list.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DashboardInitialize
The first dashboard a browser uploads: a name and the layout it already holds.
object
name
required
Name
string
layout
DashboardLayout
The placed cards and the ids of the cards the user hid.
object
cards
Cards
Array<object>
DashboardCardOne card placed on the grid: its id and its cell rectangle.
object
id
required
Id
string
x
required
X
integer
y
required
Y
integer
w
required
W
integer
h
required
H
integer
hidden
Hidden
Array<string>
Example generated
{ "name": "example", "layout": { "cards": [ { "id": "example", "x": 1, "y": 1, "w": 1, "h": 1 } ], "hidden": [ "example" ] }}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Initialize Dashboards Endpoint Api V1 Dashboards Initialize Post
Array<object>
DashboardOutobject
id
required
Id
integer
name
required
Name
string
sort_order
required
Sort Order
integer
layout
required
DashboardLayout
The placed cards and the ids of the cards the user hid.
object
cards
Cards
Array<object>
DashboardCardOne card placed on the grid: its id and its cell rectangle.
object
id
required
Id
string
x
required
X
integer
y
required
Y
integer
w
required
W
integer
h
required
H
integer
hidden
Hidden
Array<string>
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example generated
[ { "id": 1, "name": "example", "sort_order": 1, "layout": { "cards": [ { "id": "example", "x": 1, "y": 1, "w": 1, "h": 1 } ], "hidden": [ "example" ] }, "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z" }]Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}