Update Dashboard Endpoint
PATCH
/api/v1/dashboards/{dashboard_id}
const url = 'https://example.com/api/v1/dashboards/1';const options = { method: 'PATCH', 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 PATCH \ --url https://example.com/api/v1/dashboards/1 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "layout": { "cards": [ { "id": "example", "x": 1, "y": 1, "w": 1, "h": 1 } ], "hidden": [ "example" ] } }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”dashboard_id
required
Dashboard Id
integer
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DashboardUpdate
A rename, a new layout, or both; at least one must be sent.
object
layout
Any of:
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>
null
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
DashboardOut
object
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": {} } ]}