Update Prompts By Label

Updates an existing prompt version with the specified alias and version id.

Path parameters

aliasstringRequired
The unique alias of the prompt.
labelstringRequired
The label name of the prompt.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Request

textstringOptional

This is the text content of the prompt. Supply this only if you are updating a text-based prompt.

messageslist of objectsOptional

This is the list of messages that make up the prompt. Supply this only if you are updating a list-based prompt.

interpolationTypeenumOptional
This is the type of interpolation format used in the prompt to insert dynamic variables.
Allowed values:
modelSettingsobjectOptional
This is the model settings for the prompt.
outputTypeenumOptional
This is the type of output expected from the prompt.
Allowed values:
outputSchemaobjectOptional
This is the output schema definition when outputType is SCHEMA.

Response

successboolean
This is true if the prompt was successfully updated.
dataobject
deprecatedboolean
This is true if this endpoint is deprecated.