Create prompt version
Create prompt version
Request body
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.
Project ID. Takes precedence over project_name when both are provided.
If provided, scopes the prompt to the specified project. Ignored when project_id is provided.
Response
OK
version unique identifier, generated if absent
version short unique identifier, generated if absent. it must be 8 characters long
sequential version number in the format v<N>; null for masks
version type discriminator; defaults to prompt_version
Deprecated: use 'environments' instead