Dashboards
patchDashboard
Changed onPartially update a dashboard by ID. Update content (title/tiles/filters) and/or manage sharing (owners, shared_with, org_access) — only owners may change sharing. owners and shared_with replace the whole array (send the complete list); omit them to leave sharing unchanged, or send shared_with: [] to revoke all per-user grants.
patch/v1/dashboard/dashboards/{id}
Request
- Base URLhttps://dashboard.sls.epilot.io
- URLhttps://dashboard.sls.epilot.io/v1/dashboard/dashboards/{id}
- Auth
- HTTP bearer
- or API key in header x-epilot-org-id
Request body
Example request
{
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"title": "Employee Dashboard",
"tiles": [
{
"id": "e4af1297-1fd6-440f-9846-f475f580d40f",
"title": "Number of opportunities created by journeys every month",
"insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",
"visualisation_id": "timechart",
"visualisation_config": {
"query": {
"dataset": "entity_operations",
"measure": "count_operations",
"dimensions": [
{
"time_with_granularity": "year-month"
}
],
"filters": [
{
"entity_schema": "opportunity"
}
]
},
"options": {
"type": "bar"
}
},
"filter_settings": {
"bindings": {
"time_range": {
"field": "current_opportunities._created_at"
},
"6f1c2d3e-4b5a-4c6d-8e7f-9a0b1c2d3e4f": {
"ignore": true
}
}
}
}
],
"filters": [
{
"id": "time_range",
"kind": "dimension",
"label": "Status",
"field": "current_opportunities.status",
"field_type": "string",
"operator": "in"
}
]
}Response
The updated dashboard
Example response
{
"created_by": "10598",
"updated_by": "10598",
"owner_org_id": "739224",
"owners": [
"10598"
],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Employee Dashboard",
"tiles": [
{
"id": "e4af1297-1fd6-440f-9846-f475f580d40f",
"coordinates": {},
"insight_id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e"
}
],
"filters": [
{
"id": "time_range",
"kind": "time_range",
"label": "Zeitraum",
"default_value": {
"preset": "last_30_days"
}
},
{
"id": "6f1c2d3e-4b5a-4c6d-8e7f-9a0b1c2d3e4f",
"kind": "dimension",
"label": "Status",
"field": "current_opportunities.status",
"field_type": "string",
"operator": "in",
"default_value": [
"won"
]
}
],
"version": 2
}Changes
- warning
added the new
notesenum value to the///response property for the response status - info
added the new optional request property
/ - info
added the new optional request property
/// - info
added the new
notesenum value to the request property/// - info
added the optional property
/to the response with the status - info
added the optional property
///to the response with the status
- warning
- info
added the non-success response with the status
- info