provider dashboards POST /api/projects/{project_id}/dashboards/{id}/widgets/batch/
@utdk/posthog /api/projects/{project_id}/dashboards/{id}/widgets/batch/
dashboards_widgets_batch_create
Add multiple widget tiles to a dashboard in one atomic request.
format query
enum: json, txt
id path required
A unique integer value identifying this dashboard.
integer
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
dashboardsWidgetsBatchCreate
POST/api/projects/{project_id}/dashboards/{id}/widgets/batch/
Add multiple widget tiles to a dashboard in one atomic request.

Parameters

required

A unique integer value identifying this dashboard.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Widget tiles to add atomically. Supported widget_type values: activity_events_list, error_tracking_list, experiment_results, experiments_list, logs_list, session_replay_list, survey_results. Use dashboard-widget-catalog-list for per-type config_schema documentation. (1–10 per request).

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.dashboardsWidgetsBatchCreate()