provider llm_prompts POST /api/projects/{project_id}/llm_prompts/name/{prompt_name}/duplicate/
@utdk/posthog /api/projects/{project_id}/llm_prompts/name/{prompt_name}/duplicate/
llm_prompts_name_duplicate_create
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
prompt_name path required
string

Try it

Authentication
Configure credentials for PostHog API
llmPromptsNameDuplicateCreate
POST/api/projects/{project_id}/llm_prompts/name/{prompt_name}/duplicate/

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

required

Input

required

Name for the duplicated prompt. Must be unique and use only letters, numbers, hyphens, and underscores.

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