Skip to main content
PATCH
cURL

Update a Prompt Version

This endpoint updates an existing prompt version with new configuration, variables, or content.

URL Parameters

Request Body

The request body may include any of the following fields to update:

Examples

Response

The response includes the updated prompt version object with the changes applied.

Update Variables Example

Path Parameters

id
string
required

Body

application/json
title
string

Title of the prompt version

Maximum string length: 256
content
string | null

Plain text content of the prompt version

markdownContent
string | null

Markdown content of the prompt version

configuration
object

Configuration settings for the prompt version

variables
object[]

Array of variables used in the prompt

promoted
boolean

Whether this version is promoted

draft
boolean

Whether this version is a draft

messages
object

Messages for chat-type prompts

Response

200 - application/json

Prompt version updated successfully

id
string
required

Unique identifier for the prompt version

promptId
string<uuid>
required

UUID of the prompt this version belongs to

title
string
required

Title of the prompt version

Maximum string length: 256
configuration
object
required

Configuration settings for the prompt version

variables
object[]
required

Array of variables used in the prompt

content
string | null

Plain text content of the prompt version

markdownContent
string | null

Markdown content of the prompt version

promoted
boolean | null

Whether this version is promoted

draft
boolean | null

Whether this version is a draft

messages
object

Messages for chat-type prompts

createdAt
string<date-time>

Creation timestamp

updatedAt
string<date-time>

Last update timestamp