Update Prompts By Label
Updates an existing prompt version with the specified alias and version id.
Path parameters
alias
The unique alias of the prompt.
label
The label name of the prompt.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Request
text
This is the text content of the prompt. Supply this only if you are updating a text-based prompt.
messages
This is the list of messages that make up the prompt. Supply this only if you are updating a list-based prompt.
interpolationType
This is the type of interpolation format used in the prompt to insert dynamic variables.
Allowed values:
modelSettings
This is the model settings for the prompt.
outputType
This is the type of output expected from the prompt.
Allowed values:
outputSchema
This is the output schema definition when outputType is SCHEMA.
Response
success
This is true if the prompt was successfully updated.
data
deprecated
This is true if this endpoint is deprecated.