Update partially dashboard by ID
curl --request PATCH \
--url https://apiweb.mile.app/api/v3/dynamic-dashboard/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Jakarta Hub - Daily (v2)",
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 4,
"h": null
},
"widget": {
"name": "Tasks today",
"description": "All statuses, today only."
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
}
}
],
"updatedTime": "2026-09-30T01:15:02.481Z"
}
'import requests
url = "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}"
payload = {
"name": "Jakarta Hub - Daily (v2)",
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 4,
"h": None
},
"widget": {
"name": "Tasks today",
"description": "All statuses, today only."
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
}
}
],
"updatedTime": "2026-09-30T01:15:02.481Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Jakarta Hub - Daily (v2)',
widgets: [
{
cardId: 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E',
widgetId: '66f9a1c2e4b0a7d3c1f20b01',
widgetName: 'Total Tasks',
layout: {w: 4, h: null},
widget: {name: 'Tasks today', description: 'All statuses, today only.'}
},
{
cardId: 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F',
widgetId: '66f9a1c2e4b0a7d3c1f20b02',
widgetName: 'Tasks by Status',
layout: {w: 8, h: 6, x: 4, y: 0}
}
],
updatedTime: '2026-09-30T01:15:02.481Z'
})
};
fetch('https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Jakarta Hub - Daily (v2)',
'widgets' => [
[
'cardId' => 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E',
'widgetId' => '66f9a1c2e4b0a7d3c1f20b01',
'widgetName' => 'Total Tasks',
'layout' => [
'w' => 4,
'h' => null
],
'widget' => [
'name' => 'Tasks today',
'description' => 'All statuses, today only.'
]
],
[
'cardId' => 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F',
'widgetId' => '66f9a1c2e4b0a7d3c1f20b02',
'widgetName' => 'Tasks by Status',
'layout' => [
'w' => 8,
'h' => 6,
'x' => 4,
'y' => 0
]
]
],
'updatedTime' => '2026-09-30T01:15:02.481Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}"
payload := strings.NewReader("{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"code": 200,
"message": "Dashboard has been updated successfully.",
"data": {
"_id": "66f9a1c2e4b0a7d3c1f20a11",
"organizationId": "6650c2a1f3b9e4001c7d2a10",
"schemaVersion": 1,
"name": "Jakarta Hub - Daily (v2)",
"description": "Morning stand-up view",
"sharedRoleIds": [
"6650c2a1f3b9e4001c7d2b20"
],
"hubScope": {
"mode": "selected",
"hubIds": [
"6650c2a1f3b9e4001c7d2c30"
]
},
"timeRange": {
"preset": "last_7d"
},
"grid": {
"columns": 12
},
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Tasks today",
"layout": {
"w": 4,
"h": null
},
"widget": {
"schemaVersion": 1,
"name": "Tasks today",
"description": "All statuses, today only.",
"category": "overview",
"viz": "kpi",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 3,
"h": null
}
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
},
"widget": {
"schemaVersion": 1,
"name": "Tasks by Status",
"description": "Task count per status in the selected range.",
"category": "taskStatus",
"viz": "donut",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [
{
"id": "d1",
"kind": "terms",
"field": "status",
"limit": 3
}
],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 6,
"h": 6
}
}
}
],
"origin": {
"kind": "blank",
"sourceId": null,
"sourceSchemaVersion": null,
"copiedAt": "2026-09-30T08:10:44+07:00"
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdTime": "2026-09-30T01:10:44.512000Z",
"updatedTime": "2026-09-30T02:03:11.207000Z"
}
}{
"status": false,
"message": "A card with a widgetId may only edit its widget's name, description, content, viz, spec. Not editable: composite.",
"failedCode": "dydsh-003"
}{
"status": false,
"message": "Unauthenticated.",
"failedCode": "auth-034"
}{
"status": false,
"code": 403,
"message": "A shared dashboard can only be edited by its owner.",
"data": [],
"failedCode": "dydsh-035"
}{
"status": false,
"code": 404,
"message": "Data not found. Please check the ID or reference number and try again.",
"data": [],
"failedCode": "dydsh-033"
}{
"status": false,
"code": 409,
"message": "Someone else changed this dashboard while you were editing it. Reload it to see the latest version, then apply your changes again.",
"data": {
"_id": "66f9a1c2e4b0a7d3c1f20a11",
"organizationId": "6650c2a1f3b9e4001c7d2a10",
"schemaVersion": 1,
"name": "Jakarta Hub - Daily",
"description": "Morning stand-up view",
"sharedRoleIds": [
"6650c2a1f3b9e4001c7d2b20"
],
"hubScope": {
"mode": "selected",
"hubIds": [
"6650c2a1f3b9e4001c7d2c30"
]
},
"timeRange": {
"preset": "last_7d"
},
"grid": {
"columns": 12
},
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 3,
"h": null
},
"widget": {
"schemaVersion": 1,
"name": "Total Tasks",
"description": "Tasks whose start time falls in the selected range, across every status.",
"category": "overview",
"viz": "kpi",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 3,
"h": null
}
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 6,
"h": 6,
"x": 3,
"y": 0
},
"widget": {
"schemaVersion": 1,
"name": "Tasks by Status",
"description": "Task count per status in the selected range.",
"category": "taskStatus",
"viz": "donut",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [
{
"id": "d1",
"kind": "terms",
"field": "status",
"limit": 3
}
],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 6,
"h": 6
}
}
}
],
"origin": {
"kind": "blank",
"sourceId": null,
"sourceSchemaVersion": null,
"copiedAt": "2026-09-30T08:10:44+07:00"
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdTime": "2026-09-30T01:10:44.512000Z",
"updatedTime": "2026-09-30T01:21:37.090000Z"
},
"failedCode": "dydsh-039"
}{
"status": false,
"code": 422,
"message": "This dashboard was saved by a newer version of MileApp and cannot be opened here. Please refresh the page and try again.",
"data": [],
"failedCode": "dydsh-040"
}{
"status": false,
"code": 500,
"message": "something_wrong",
"failedCode": "dydsh-045"
}Dashboard
Update partially dashboard by ID
Partially updates a dashboard. Only the owner can update it. Send the whole widgets array in order, because a card left out is removed, and send the updatedTime from your last read so a newer change is not overwritten. See the Dashboard overview for card editing rules.
PATCH
/
dynamic-dashboard
/
{id}
Update partially dashboard by ID
curl --request PATCH \
--url https://apiweb.mile.app/api/v3/dynamic-dashboard/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Jakarta Hub - Daily (v2)",
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 4,
"h": null
},
"widget": {
"name": "Tasks today",
"description": "All statuses, today only."
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
}
}
],
"updatedTime": "2026-09-30T01:15:02.481Z"
}
'import requests
url = "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}"
payload = {
"name": "Jakarta Hub - Daily (v2)",
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 4,
"h": None
},
"widget": {
"name": "Tasks today",
"description": "All statuses, today only."
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
}
}
],
"updatedTime": "2026-09-30T01:15:02.481Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Jakarta Hub - Daily (v2)',
widgets: [
{
cardId: 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E',
widgetId: '66f9a1c2e4b0a7d3c1f20b01',
widgetName: 'Total Tasks',
layout: {w: 4, h: null},
widget: {name: 'Tasks today', description: 'All statuses, today only.'}
},
{
cardId: 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F',
widgetId: '66f9a1c2e4b0a7d3c1f20b02',
widgetName: 'Tasks by Status',
layout: {w: 8, h: 6, x: 4, y: 0}
}
],
updatedTime: '2026-09-30T01:15:02.481Z'
})
};
fetch('https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Jakarta Hub - Daily (v2)',
'widgets' => [
[
'cardId' => 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E',
'widgetId' => '66f9a1c2e4b0a7d3c1f20b01',
'widgetName' => 'Total Tasks',
'layout' => [
'w' => 4,
'h' => null
],
'widget' => [
'name' => 'Tasks today',
'description' => 'All statuses, today only.'
]
],
[
'cardId' => 'crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F',
'widgetId' => '66f9a1c2e4b0a7d3c1f20b02',
'widgetName' => 'Tasks by Status',
'layout' => [
'w' => 8,
'h' => 6,
'x' => 4,
'y' => 0
]
]
],
'updatedTime' => '2026-09-30T01:15:02.481Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}"
payload := strings.NewReader("{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiweb.mile.app/api/v3/dynamic-dashboard/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jakarta Hub - Daily (v2)\",\n \"widgets\": [\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b01\",\n \"widgetName\": \"Total Tasks\",\n \"layout\": {\n \"w\": 4,\n \"h\": null\n },\n \"widget\": {\n \"name\": \"Tasks today\",\n \"description\": \"All statuses, today only.\"\n }\n },\n {\n \"cardId\": \"crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F\",\n \"widgetId\": \"66f9a1c2e4b0a7d3c1f20b02\",\n \"widgetName\": \"Tasks by Status\",\n \"layout\": {\n \"w\": 8,\n \"h\": 6,\n \"x\": 4,\n \"y\": 0\n }\n }\n ],\n \"updatedTime\": \"2026-09-30T01:15:02.481Z\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"code": 200,
"message": "Dashboard has been updated successfully.",
"data": {
"_id": "66f9a1c2e4b0a7d3c1f20a11",
"organizationId": "6650c2a1f3b9e4001c7d2a10",
"schemaVersion": 1,
"name": "Jakarta Hub - Daily (v2)",
"description": "Morning stand-up view",
"sharedRoleIds": [
"6650c2a1f3b9e4001c7d2b20"
],
"hubScope": {
"mode": "selected",
"hubIds": [
"6650c2a1f3b9e4001c7d2c30"
]
},
"timeRange": {
"preset": "last_7d"
},
"grid": {
"columns": 12
},
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Tasks today",
"layout": {
"w": 4,
"h": null
},
"widget": {
"schemaVersion": 1,
"name": "Tasks today",
"description": "All statuses, today only.",
"category": "overview",
"viz": "kpi",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 3,
"h": null
}
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 8,
"h": 6,
"x": 4,
"y": 0
},
"widget": {
"schemaVersion": 1,
"name": "Tasks by Status",
"description": "Task count per status in the selected range.",
"category": "taskStatus",
"viz": "donut",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [
{
"id": "d1",
"kind": "terms",
"field": "status",
"limit": 3
}
],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 6,
"h": 6
}
}
}
],
"origin": {
"kind": "blank",
"sourceId": null,
"sourceSchemaVersion": null,
"copiedAt": "2026-09-30T08:10:44+07:00"
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdTime": "2026-09-30T01:10:44.512000Z",
"updatedTime": "2026-09-30T02:03:11.207000Z"
}
}{
"status": false,
"message": "A card with a widgetId may only edit its widget's name, description, content, viz, spec. Not editable: composite.",
"failedCode": "dydsh-003"
}{
"status": false,
"message": "Unauthenticated.",
"failedCode": "auth-034"
}{
"status": false,
"code": 403,
"message": "A shared dashboard can only be edited by its owner.",
"data": [],
"failedCode": "dydsh-035"
}{
"status": false,
"code": 404,
"message": "Data not found. Please check the ID or reference number and try again.",
"data": [],
"failedCode": "dydsh-033"
}{
"status": false,
"code": 409,
"message": "Someone else changed this dashboard while you were editing it. Reload it to see the latest version, then apply your changes again.",
"data": {
"_id": "66f9a1c2e4b0a7d3c1f20a11",
"organizationId": "6650c2a1f3b9e4001c7d2a10",
"schemaVersion": 1,
"name": "Jakarta Hub - Daily",
"description": "Morning stand-up view",
"sharedRoleIds": [
"6650c2a1f3b9e4001c7d2b20"
],
"hubScope": {
"mode": "selected",
"hubIds": [
"6650c2a1f3b9e4001c7d2c30"
]
},
"timeRange": {
"preset": "last_7d"
},
"grid": {
"columns": 12
},
"widgets": [
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3E",
"widgetId": "66f9a1c2e4b0a7d3c1f20b01",
"widgetName": "Total Tasks",
"layout": {
"w": 3,
"h": null
},
"widget": {
"schemaVersion": 1,
"name": "Total Tasks",
"description": "Tasks whose start time falls in the selected range, across every status.",
"category": "overview",
"viz": "kpi",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 3,
"h": null
}
}
},
{
"cardId": "crd_01J8ZQ4R5W6X7Y8Z9A0B1C2D3F",
"widgetId": "66f9a1c2e4b0a7d3c1f20b02",
"widgetName": "Tasks by Status",
"layout": {
"w": 6,
"h": 6,
"x": 3,
"y": 0
},
"widget": {
"schemaVersion": 1,
"name": "Tasks by Status",
"description": "Task count per status in the selected range.",
"category": "taskStatus",
"viz": "donut",
"spec": {
"specVersion": 1,
"dataSourceId": "task",
"timeField": "startTime",
"measures": [
{
"id": "m1",
"fn": "count"
}
],
"dimensions": [
{
"id": "d1",
"kind": "terms",
"field": "status",
"limit": 3
}
],
"filters": []
},
"composite": null,
"content": null,
"defaultLayout": {
"w": 6,
"h": 6
}
}
}
],
"origin": {
"kind": "blank",
"sourceId": null,
"sourceSchemaVersion": null,
"copiedAt": "2026-09-30T08:10:44+07:00"
},
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"createdTime": "2026-09-30T01:10:44.512000Z",
"updatedTime": "2026-09-30T01:21:37.090000Z"
},
"failedCode": "dydsh-039"
}{
"status": false,
"code": 422,
"message": "This dashboard was saved by a newer version of MileApp and cannot be opened here. Please refresh the page and try again.",
"data": [],
"failedCode": "dydsh-040"
}{
"status": false,
"code": 500,
"message": "something_wrong",
"failedCode": "dydsh-045"
}Authorizations
Use a valid Bearer token to authenticate.
Path Parameters
Dashboard _id
Body
application/json
Fields to change
Maximum string length:
200Maximum array length:
50Show child attributes
Show child attributes
Default time window for the dashboard, or null. Not interpreted by the CRUD layer; the analytics endpoint accepts today, yesterday, last_7d, last_30d.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The whole card array, in order. Omitted cards are removed.
Show child attributes
Show child attributes
Lost-update precondition: the updatedTime from your last read. Absent, null or empty skips the check.