Create prompt version

Create prompt version

Request

This endpoint expects an object.
namestringRequired>=1 character
versionobjectRequired
template_structureenumOptionalDefaults to text

Template 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.

Allowed values:

Response

OK
templatestring>=1 character
idstring or nullformat: "uuid"
version unique identifier, generated if absent
prompt_idstring or nullformat: "uuid"
commitstring or nullformat: "^[a-zA-Z0-9]{8}$"
version short unique identifier, generated if absent. it must be 8 characters long
metadataobject or null
typeenum or null
Allowed values:
change_descriptionstring or null
variableslist of strings or null
template_structureenum or null
Allowed values:
created_atstring or nullformat: "date-time"
created_bystring or null

Errors