Update an existing prompt

Update an existing prompt’s template and/or input types.

This endpoint allows superusers to update the template and input types of an existing prompt.

Path parameters

namestringRequired

Prompt name

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

X-API-KeystringRequired

Request

This endpoint expects an object.
templatestringOptional

Updated prompt template

input_typesmap from strings to stringsOptional

A dictionary mapping input names to their types

Response

Successful Response

resultsobject

Errors