Create a new prompt

POST

Create a new prompt with the given configuration.

This endpoint allows superusers to create a new prompt with a specified name, template, and input types.

Request

This endpoint expects an object.
namestringRequired

The name of the prompt

templatestringRequired

The template string for the prompt

input_typesmap from strings to stringsOptional

A dictionary mapping input names to their types

Response

Successful Response

resultsobject

Errors