Restore prompt version

Restore a prompt version by creating a new version with the content from the specified version

Path parameters

promptIdstringRequiredformat: "uuid"
versionIdstringRequiredformat: "uuid"

Response

OK
templatestring>=1 character
idstringformat: "uuid"
version unique identifier, generated if absent
prompt_idstringRead-onlyformat: "uuid"
commitstringformat: "^[a-zA-Z0-9]{8}$"
version short unique identifier, generated if absent. it must be 8 characters long
metadataobject
typeenum
Allowed values:
change_descriptionstring
tagslist of strings
variableslist of stringsRead-only
template_structureenumRead-only
Allowed values:
created_atdatetimeRead-only
created_bystringRead-only

Errors

400
Bad Request Error
404
Not Found Error