v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2193427579.9 KB
Prompts

Update a prompt.

Update an existing prompt (increments version).

put/v1/prompts/{prompt_id}

Path parameters

prompt_idstring required

The identifier of the prompt to update.

The identifier of the prompt to update.

Request body

promptstring required

The updated prompt text content.

versioninteger required

The current version of the prompt being updated.

variablesstring[] nullable

Updated list of variable names that can be used in the prompt template.

set_as_defaultboolean

Set the new version as the default (default=True).

Response

The updated Prompt resource with incremented version.

promptstring nullable

The system prompt with variable placeholders

versioninteger required

Version (integer starting at 1, incremented on save)

prompt_idstring required

Unique identifier in format 'pmpt_<48-digit-hash>'

variablesstring[]

List of variable names that can be used in the prompt template

is_defaultboolean

Boolean indicating whether this version is the default version