Skip to main content
POST
Create a dashboard

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Body

application/json
module
string
required

Python source: one widget_<id>(ctx) function per widget, plus shared helpers. ctx.period (start, end) is the data window; ctx.inputs holds the data of the widgets this one lists as inputs. With a dataset, collect(ctx) returns its rows, which every function reads as ctx.rows, and the rows of the last scheduled refresh as ctx.previous_rows (None before the first). Vendor reads go through the injected clients, e.g. from psa.client import http_request, under the dashboard's read-only permission groups. See docs.neoagent.io/product/dashboards.

name
string
required
Required string length: 1 - 120
period_rule
PeriodRuleRequest · object
required
widgets
PublicWidget · object[]
required

The widgets, in run order: a widget's inputs are listed before it.

custom_api_connections
string[]

Custom API connections the module reads, by id or name: from external_api.client import http_request, then http_request("<connection id>"). GET connections only; stored and returned as ids. A miss lists the workspace's GET connections.

dataset
PublicDataset · object | null

The rows collect(ctx) in the module returns; needed by any widget with a query.

folder_id
string<uuid> | null

A folder from GET /dashboards/folders to file the dashboard in on the list; left out, it sits at the top level.

permission_groups
Permission Groups · object

Read-only integration permission groups the module's vendor calls run under, keyed by integration field name, with group display names.

schedule
PublicSchedule · object | null

Refresh on its own on this schedule; left out, once a day from now, in the period's timezone.

source_template_id
integer | null

The dashboard template (GET /dashboards/templates) this dashboard was built from; left out when built from scratch.

theme
PublicTheme · object | null

The workspace's brand colours and widget title size on the presets; left out, the page's own.

Response

Success.

data
PublicDashboardCard · object
required

What a write answers: enough for the chat to open the dashboard beside it.

meta
object
required