v1
latestOpenAPI 3.0.02026-07-12152226.1 KBInsights
patchInsight
Partially update an insight by ID. Update content (name/description/visualisation/tags) 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/insights/{id}
Request body
Example request
{
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"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"
}
},
"tags": [
"revenue",
"marketing"
]
}Response
The updated insight
Example response
{
"created_by": "10598",
"updated_by": "10598",
"owner_org_id": "739224",
"owners": [
"10598"
],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"id": "8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e",
"name": "Opportunities created by journeys every month",
"description": "Monthly count of opportunities grouped by source journey",
"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"
}
},
"tags": [
"revenue",
"marketing"
]
}