Prompts

Create prompt version

Create a new version of an existing prompt. Supports major and minor version bumps with changelog.

post/api/v1/prompts/{promptH}/versions

Request

  • Base URL: https://numonic.ai
  • URL: https://numonic.ai/api/v1/prompts/{promptH}/versions
  • Auth: API key in header x-api-key

Path parameters

promptHstring required

Prompt SHA-1 hash identifier

Request body

prompt_textstring required

Updated prompt text

change_logstring

Description of changes in this version

model_configobject

Updated model parameters

variables_schemaobject

Updated template variable definitions

version_bump'major' | 'minor'

Version increment type

Response

Version created

Changes

No recorded changes to this operation across all 1 revision of this API.