provider llm_prompts PATCH /api/projects/{project_id}/llm_prompts/name/{prompt_name}/
@utdk/posthog /api/projects/{project_id}/llm_prompts/name/{prompt_name}/
llm_prompts_name_partial_update
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
llmPromptsNamePartialUpdate
PATCH/api/projects/{project_id}/llm_prompts/name/{prompt_name}/

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

Full prompt payload to publish as a new version. Mutually exclusive with edits.

List of find/replace operations to apply to the current prompt version. Each edit's 'old' text must match exactly once. Edits are applied sequentially. Mutually exclusive with prompt.

Latest version you are editing from. Used for optimistic concurrency checks.

Optional note describing what changed in this version. Shown in the version history.

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