Create Prompt Version
Creates a new version of a prompt
Create a Prompt Version
This endpoint creates a new version of a prompt with the specified configuration, variables, and content.
Request Body
The request body must include the following fields:
Parameter | Type | Description |
---|---|---|
promptId | string (UUID) | The ID of the prompt to create a version for |
title | string | The title of the prompt version (max 256 characters) |
configuration | object | Configuration settings for the prompt version |
variables | array | An array of variable objects used in the prompt |
Optional Fields
Parameter | Type | Description |
---|---|---|
content | string | Plain text content of the prompt |
markdownContent | string | Markdown content of 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 created prompt version object with its assigned ID and other details.
Structured Output Example
Body
UUID of the prompt to create a version for
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
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