Update Prompt Version
Updates an existing prompt version
Update a Prompt Version
This endpoint updates an existing prompt version with new configuration, variables, or content.
URL Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the prompt version to update |
Request Body
The request body may include any of the following fields to update:
Parameter | Type | Description |
---|---|---|
title | string | The title of the prompt version (max 256 characters) |
content | string | Plain text content of the prompt |
markdownContent | string | Markdown content of the prompt |
configuration | object | Configuration settings for the prompt version |
variables | array | An array of variable objects used in the prompt |
promoted | boolean | Whether this version is promoted |
draft | boolean | Whether this version is a draft |
messages | array/object | Messages for chat-type prompts |
Examples
Response
The response includes the updated prompt version object with the changes applied.
Update Variables Example
Path Parameters
Body
Title of the prompt version
256
Plain text content of the prompt version
Markdown content of the prompt version
Configuration settings for the prompt version
Array of variables used in the prompt
Whether this version is promoted
Whether this version is a draft
Messages for chat-type prompts
Response
Unique identifier for the prompt version
UUID of the prompt this version belongs to
Title of the prompt version
256
Configuration settings for the prompt version
Array of variables used in the prompt
Plain text content of the prompt version
Markdown content of the prompt version
Whether this version is promoted
Whether this version is a draft
Messages for chat-type prompts
Creation timestamp
Last update timestamp