prompts

Create Global Prompt Template Version

Create a prompt template version for a given prompt template.

Parameters

template_id : UUID4 Prompt template ID. base_prompt_template_version : BasePromptTemplateVersion Version details to create.

Returns

BasePromptTemplateVersionResponse Response with details about the created prompt template version.

post/templates/{template_id}/versions

Path parameters

template_idstring uuid4 required

Request body

rawboolean
versioninteger nullable
output_typestring nullable

Response

Successful Response

rawboolean
versioninteger required
output_typestring nullable
idstring uuid4 required
model_changedboolean required
lines_addedinteger
lines_editedinteger
lines_removedinteger
settings_changedboolean required
content_changedboolean required
created_atstring date-time required
updated_atstring date-time required

Changes

Changed in 2 of the 14 revisions of this API.5

    • added the new optional request property settings/known_models/items/deprecation_date

      new-optional-request-property

    • added the new optional request property settings/known_models/items/lifecycle_state

      new-optional-request-property

    • added the new optional request property settings/known_models/items/replacement_alias

      new-optional-request-property

    • added the new optional request property settings/known_models/items/retirement_date

      new-optional-request-property

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the endpoint scheme security ClassicAPIKeyHeader was added to the API

      api-security-added

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog