provider insights POST
/api/environments/{environment_id}/insights/bulk_restore/ @utdk/posthog
/api/environments/{environment_id}/insights/bulk_restore/ environments_insights_bulk_restore_create
Restore soft-deleted insights in bulk by ID — the inverse of bulk_delete. Sets deleted=False and re-activates the insights' dashboard tiles on dashboards that still exist. Linked alerts are not restored (they are removed on delete). Insights the requester cannot edit are reported in `skipped`.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- format query
- enum: csv, json
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsInsightsBulkRestoreCreate()