Skip to main content

Dashboard API

API to store the dashboard configuration for the epilot 360 dashboard

Quick Startโ€‹

# List available operations
epilot dashboard

# Call an operation
epilot dashboard listDashboards

Common Flagsโ€‹

FlagDescription
-p key=valueSet a named parameter
-d '{...}'Request body JSON
-H 'Key: Value'Custom header
-t, --token <token>Bearer token for authentication
--profile <name>Use a named profile
-s, --server <url>Override server base URL
-i, --includeInclude response headers in output
--jsonOutput raw JSON (no formatting)
-v, --verboseVerbose output (show request details)
--jsonata <expr>JSONata expression to transform response
--definition <file>Override OpenAPI spec file/URL
--guidedPrompt for all parameters interactively
--no-interactiveDisable interactive prompts

Operationsโ€‹

Dashboards

Insights

  • listInsights โ€” List insights (saved charts) available to the user
  • createInsight โ€” Create a new insight (saved chart). The caller becomes the owner.
  • listInsightTags โ€” List the distinct tags used by insights in the organization (for filter facets)
  • getInsight โ€” Get insight by ID
  • putInsight โ€” Replace an insight's content by ID. Sharing is managed via patchInsight.
  • patchInsight โ€” Partially update an insight by ID. Update content (name/description/visualisation/tags) and/or
  • deleteInsight โ€” Delete an insight by ID. Only owners may delete.

Visualisations

Examples

  • listAvailableExamples โ€” Returns list of available exampless for visualisations to configure new dashboard tiles

listDashboardsโ€‹

List dashboards available to the user

GET /v1/dashboard/dashboards

Parameters

NameInTypeRequiredDescription
qquerystringNoFree-text search over name/title and description (case-insensitive substring).
created_byquerystringNoFilter by the id of the creating user.
created_afterquerystring (date-time)No
created_beforequerystring (date-time)No
updated_afterquerystring (date-time)No
updated_beforequerystring (date-time)No
shared_withquerystring[]NoFilter to resources shared with any of the given user ids.
ownerquerystring[]NoFilter to resources owned by any of the given user ids.
accessible_toquerystringNoFilter to resources the given user id may view (owner, shared, org-wide or legacy).
favoritequerybooleanNoDashboards only. Filter to only (true) or exclude (false) the requesting user's

favorited dashboards. A user with zero favorites and favorite=true gets an empty page, not the unfiltered list. | | favorites_first | query | boolean | No | Dashboards only. No filtering โ€” sorts the requesting user's favorited dashboards first, preserving the existing secondary ordering (sort/order) otherwise. | | sort | query | "created_at" | "updated_at" | "name" | "title" | No | Field to sort by. name and title are aliases for the resource's display name and are normalised per resource: dashboards sort by title and insights by name, whichever of the two values is sent | | order | query | "asc" | "desc" | No | Sort direction. Defaults to ascending (preserving the pre-migration order). | | limit | query | number | No | Maximum results to return (max 200). Omit to return all matching results (pagination is opt-in). | | offset | query | number | No | Number of results to skip, for pagination. Use with limit (page N = offset N*limit). |

Sample Call

epilot dashboard listDashboards

With JSONata filter:

epilot dashboard listDashboards --jsonata 'results[0]'
Sample Response
{
"results": [
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}
],
"pagination": {
"total": 0,
"limit": 0,
"offset": 0,
"has_more": true
}
}

createDashboardโ€‹

Create new dashboard

POST /v1/dashboard/dashboards

Request Body

Sample Call

epilot dashboard createDashboard

With request body:

epilot dashboard createDashboard \
-d '{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}'

Using stdin pipe:

cat body.json | epilot dashboard createDashboard

With JSONata filter:

epilot dashboard createDashboard --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}

listFavoriteDashboardIdsโ€‹

Returns the current user's favorited dashboard ids, with no dashboard metadata. Lets a

GET /v1/dashboard/dashboards/favorites

Sample Call

epilot dashboard listFavoriteDashboardIds

With JSONata filter:

epilot dashboard listFavoriteDashboardIds --jsonata 'dashboard_ids'
Sample Response
{
"dashboard_ids": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],
"total": 0
}

favoriteDashboardโ€‹

Marks the dashboard as favorited by the current user. Idempotent โ€” favoriting an

PUT /v1/dashboard/dashboards/{id}/favorite

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard favoriteDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

Using positional args for path parameters:

epilot dashboard favoriteDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard favoriteDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'

unfavoriteDashboardโ€‹

Removes the current user's favorite for the dashboard. Idempotent โ€” unfavoriting a

DELETE /v1/dashboard/dashboards/{id}/favorite

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard unfavoriteDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

Using positional args for path parameters:

epilot dashboard unfavoriteDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard unfavoriteDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'

getDashboardโ€‹

Get dashboard by ID

GET /v1/dashboard/dashboards/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard getDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

Using positional args for path parameters:

epilot dashboard getDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard getDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}

putDashboardโ€‹

Update a dashboard by ID

PUT /v1/dashboard/dashboards/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request Body

Sample Call

epilot dashboard putDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

With request body:

epilot dashboard putDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 \
-d '{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}'

Using positional args for path parameters:

epilot dashboard putDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

Using stdin pipe:

cat body.json | epilot dashboard putDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard putDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}

patchDashboardโ€‹

Partially update a dashboard by ID. Update content (title/tiles) and/or manage sharing

PATCH /v1/dashboard/dashboards/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request Body

Sample Call

epilot dashboard patchDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

With request body:

epilot dashboard patchDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 \
-d '{
"owners": ["string"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "view",
"title": "Employee Dashboard",
"tiles": [
{
"id": "e4af1297-1fd6-440f-9846-f475f580d40f",
"coordinates": {},
"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"
}
}
}
]
}'

Using positional args for path parameters:

epilot dashboard patchDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

Using stdin pipe:

cat body.json | epilot dashboard patchDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard patchDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}

deleteDashboardโ€‹

Delete a dashboard by ID

DELETE /v1/dashboard/dashboards/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard deleteDashboard \
-p id=3fa85f64-5717-4562-b3fc-2c963f66afa6

Using positional args for path parameters:

epilot dashboard deleteDashboard 3fa85f64-5717-4562-b3fc-2c963f66afa6

With JSONata filter:

epilot dashboard deleteDashboard -p id=3fa85f64-5717-4562-b3fc-2c963f66afa6 --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"
}
],
"favorited": false
}

listInsightsโ€‹

List insights (saved charts) available to the user

GET /v1/dashboard/insights

Parameters

NameInTypeRequiredDescription
qquerystringNoFree-text search over name/title and description (case-insensitive substring).
visualisation_idquery"kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"[]NoFilter insights by one or more visualisation ids.
tagsquerystring[]NoFilter by one or more tags (see tags_match for any/all semantics).
tags_matchquery"any" | "all"NoWhether a result must match any (default) or all of the given tags.
created_byquerystringNoFilter by the id of the creating user.
created_afterquerystring (date-time)No
created_beforequerystring (date-time)No
updated_afterquerystring (date-time)No
updated_beforequerystring (date-time)No
shared_withquerystring[]NoFilter to resources shared with any of the given user ids.
ownerquerystring[]NoFilter to resources owned by any of the given user ids.
accessible_toquerystringNoFilter to resources the given user id may view (owner, shared, org-wide or legacy).
sortquery"created_at" | "updated_at" | "name" | "title"NoField to sort by. name and title are aliases for the resource's display name and are normalised per resource: dashboards sort by title and insights by name, whichever of the two values is sent
orderquery"asc" | "desc"NoSort direction. Defaults to ascending (preserving the pre-migration order).
limitquerynumberNoMaximum results to return (max 200). Omit to return all matching results (pagination is opt-in).
offsetquerynumberNoNumber of results to skip, for pagination. Use with limit (page N = offset N*limit).

Sample Call

epilot dashboard listInsights

With JSONata filter:

epilot dashboard listInsights --jsonata 'results[0]'
Sample Response
{
"results": [
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}
],
"pagination": {
"total": 0,
"limit": 0,
"offset": 0,
"has_more": true
}
}

createInsightโ€‹

Create a new insight (saved chart). The caller becomes the owner.

POST /v1/dashboard/insights

Request Body

Sample Call

epilot dashboard createInsight

With request body:

epilot dashboard createInsight \
-d '{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}'

Using stdin pipe:

cat body.json | epilot dashboard createInsight

With JSONata filter:

epilot dashboard createInsight --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}

listInsightTagsโ€‹

List the distinct tags used by insights in the organization (for filter facets)

GET /v1/dashboard/insights/tags

Sample Call

epilot dashboard listInsightTags

With JSONata filter:

epilot dashboard listInsightTags --jsonata 'results[0]'
Sample Response
{
"results": ["string"]
}

getInsightโ€‹

Get insight by ID

GET /v1/dashboard/insights/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard getInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

Using positional args for path parameters:

epilot dashboard getInsight 8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With JSONata filter:

epilot dashboard getInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}

putInsightโ€‹

Replace an insight's content by ID. Sharing is managed via patchInsight.

PUT /v1/dashboard/insights/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request Body

Sample Call

epilot dashboard putInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With request body:

epilot dashboard putInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e \
-d '{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}'

Using positional args for path parameters:

epilot dashboard putInsight 8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

Using stdin pipe:

cat body.json | epilot dashboard putInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With JSONata filter:

epilot dashboard putInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}

patchInsightโ€‹

Partially update an insight by ID. Update content (name/description/visualisation/tags) and/or

PATCH /v1/dashboard/insights/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request Body

Sample Call

epilot dashboard patchInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With request body:

epilot dashboard patchInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e \
-d '{
"owners": ["string"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "view",
"name": "string",
"description": "string",
"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"]
}'

Using positional args for path parameters:

epilot dashboard patchInsight 8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

Using stdin pipe:

cat body.json | epilot dashboard patchInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With JSONata filter:

epilot dashboard patchInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}

deleteInsightโ€‹

Delete an insight by ID. Only owners may delete.

DELETE /v1/dashboard/insights/{id}

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Sample Call

epilot dashboard deleteInsight \
-p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

Using positional args for path parameters:

epilot dashboard deleteInsight 8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e

With JSONata filter:

epilot dashboard deleteInsight -p id=8d2e1c7a-3b4f-4a2e-9c1d-2f3a4b5c6d7e --jsonata '$'
Sample Response
{
"created_by": "10598",
"created_at": "1970-01-01T00:00:00.000Z",
"updated_by": "10598",
"updated_at": "1970-01-01T00:00:00.000Z",
"owner_org_id": "739224",
"owners": ["10598"],
"shared_with": [
{
"user_id": "10598",
"permission": "view"
}
],
"org_access": "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"]
}

listAvailableVisualisationsโ€‹

Returns list of available Visualisations to configure new dashboard tiles

GET /v1/dashboard/visualisations

Sample Call

epilot dashboard listAvailableVisualisations

With JSONata filter:

epilot dashboard listAvailableVisualisations --jsonata 'results[0]'
Sample Response
{
"results": [
{
"visualisation": "timechart",
"title": "Time Series Visualisation",
"description": "Visualise your metrics with respect to time series",
"package_name": "@epilot360/highcharts"
},
{
"visualisation": "kpi",
"title": "KPI Visualisation",
"description": "Visualise your key performance indicators",
"package_name": "@epilot360/kpi"
}
]
}

listAvailableExamplesโ€‹

Returns list of available exampless for visualisations to configure new dashboard tiles

GET /v1/dashboard/examples

Sample Call

epilot dashboard listAvailableExamples

With JSONata filter:

epilot dashboard listAvailableExamples --jsonata 'results[0]'
Sample Response
{
"results": [
{
"id": "e4af1297-1fd6-440f-9846-f475f580d40f",
"title": "Number of opportunities created by journeys every month",
"visualisation": "timechart",
"query": {
"dataset": "entity_operations",
"measure": "count_operations",
"dimensions": [
{
"time_with_granularity": "year-month"
}
],
"filters": [
{
"entity_schema": "opportunity"
}
]
}
}
]
}