v27

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

Set prompt version.

Set which version of a prompt should be the default in get_prompt (latest).

put/v1/prompts/{prompt_id}/set-default-version

Path parameters

prompt_idstring required

The identifier of the prompt.

The identifier of the prompt.

Request body

versioninteger required

The version to set as default.

Response

The prompt with the specified version now set as default.

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