provider dashboard_templates POST /api/projects/{project_id}/dashboard_templates/copy_between_projects/
@utdk/posthog /api/projects/{project_id}/dashboard_templates/copy_between_projects/
Copy a team template to this project
Creates a new team-scoped template in the **target** project (URL) from a **team-scoped** source template in the same organization. Global and feature-flag templates return 400. Cross-organization or inaccessible sources return 404. Source and destination projects must differ (400 if equal). Conflicting `template_name` values on the destination are auto-suffixed with `(copy)`, `(copy 2)`, …
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
dashboardTemplatesCopyBetweenProjectsCreate
POST/api/projects/{project_id}/dashboard_templates/copy_between_projects/
Creates a new team-scoped template in the **target** project (URL) from a **team-scoped** source template in the same organization. Global and feature-flag templates return 400. Cross-organization or inaccessible sources return 404. Source and destination projects must differ (400 if equal). Conflicting `template_name` values on the destination are auto-suffixed with `(copy)`, `(copy 2)`, …

Parameters

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

UUID of a team-scoped template in the same organization. Global and feature-flag templates cannot be copied with this endpoint.

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.dashboardTemplatesCopyBetweenProjectsCreate()