/v1/private/prompts/versionsCreate prompt versionCreate prompt version
Request body
application/json
namestringrequiredproject_idstring · uuidProject ID. Takes precedence over project_name when both are provided.
project_namestringIf provided, scopes the prompt to the specified project. Ignored when project_id is provided.
template_structurestringTemplate structure for the prompt: 'text' or 'chat'. Note: This field is only used when creating a new prompt. If a prompt with the given name already exists, this field is ignored and the existing prompt's template structure is used. Template structure is immutable after prompt creation.
versionobjectrequiredShow child attributes
change_descriptionstringcommitstringversion short unique identifier, generated if absent. it must be 8 characters long
created_atstring · date-timecreated_bystringenvironmentstringDeprecated: use 'environments' instead
environmentsarray of stringShow child attributes
idstring · uuidversion unique identifier, generated if absent
metadataobjectprompt_idstring · uuidtagsarray of stringShow child attributes
templatestringrequiredtemplate_structurestringtypestringvariablesarray of stringShow child attributes
version_numberstringsequential version number in the format v<N>; null for masks
version_typestringversion type discriminator; defaults to prompt_version
{
"name": "string",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"template_structure": "text",
"version": {
"change_description": "string",
"commit": "string",
"environment": "string",
"environments": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"tags": [
"string"
],
"template": "string",
"type": "jinja2",
"version_type": "mask"
}
}Responses
change_descriptionstringcommitstringversion short unique identifier, generated if absent. it must be 8 characters long
created_atstring · date-timecreated_bystringenvironmentstringDeprecated: use 'environments' instead
environmentsarray of stringShow child attributes
idstring · uuidversion unique identifier, generated if absent
metadataobjectprompt_idstring · uuidtagsarray of stringShow child attributes
templatestringrequiredtemplate_structurestringtypestringvariablesarray of stringShow child attributes
version_numberstringsequential version number in the format v<N>; null for masks
version_typestringversion type discriminator; defaults to prompt_version
{
"change_description": "string",
"commit": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"environment": "string",
"environments": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"prompt_id": "00000000-0000-0000-0000-000000000000",
"tags": [
"string"
],
"template": "string",
"template_structure": "chat",
"type": "jinja2",
"variables": [
"string"
],
"version_number": "string",
"version_type": "mask"
}errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}