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. 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.

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.

Response

Success.

data
PublicDashboardCard · object
required

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

meta
object
required