Prompts

Save a new version

Save the body (as in Create a prompt) as the next version; earlier versions stay as they were. name renames the prompt.

post/prompts/{prompt_id}

Request

  • Base URL
    https://api.openscale.so/v1
  • URL
    https://api.openscale.so/v1/prompts/{prompt_id}
  • Auth
    HTTP bearer

Request body

namestring
instructionsstring
inputunknown
modelstring
toolsobject[]
tool_choiceunknown
textobject
reasoningobject
temperaturenumber
top_pnumber
max_output_tokensinteger
parallel_tool_callsboolean
truncation'auto' | 'disabled'

Response

The new version.

idstring required
object'prompt' required
namestring nullable
versionstring required
latest_versionstring required
variablesstring[] required
created_atinteger
version_created_atinteger

Example response

{
  "id": "pmpt_9f2c...",
  "version": "2"
}

Changes

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