Push Prompts

Creates a new prompt on your Confident AI project.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Request

aliasstringRequired
The unique alias of the prompt.
textstringOptional

The text content of the prompt. Supply this only if you are creating a text-based prompt.

messageslist of objectsOptional

The list of messages that make up the prompt. Supply this only if you are creating a list-based prompt.

interpolationTypeenumOptionalDefaults to FSTRING
The type of interpolation format used in the prompt to insert dynamic variables.
Allowed values:
modelSettingsobjectOptional
This is the model settings for the prompt.
outputTypeenumOptionalDefaults to TEXT
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 created.
dataobject
This maps to the prompt version id.
deprecatedboolean
This is true if this endpoint is deprecated.