Create Prompt

POST

Two types of prompts can be created - a root prompt or a child prompt (aka Prompt Version in the app).

A root prompt can be created by providing the name param, and it will always be tagged as production.

A child prompt can be created by providing the parent_id param. Note that the name param in this case will be ignored as all descendants from a root prompt would share the root’s name. is_prod can also be provided to configure whether a child should be tagged as production.

Request

This endpoint expects an object.
prompt_templatestringRequired
namestringOptional
parent_idstringOptional
descriptionstringOptional
model_paramsmap from strings to optional integers or doubles or strings or booleansOptional
tagstringOptional
is_prodbooleanOptional
project_idintegerOptional

Response

This endpoint returns an object.
org_idstringOptional

The organization this resource belongs to.

user_idstringOptional

The user this record belongs to.

idstringOptional
namestringOptional
descriptionstringOptional
is_archivedbooleanOptional
prompt_templatestringOptional
model_paramsmap from strings to optional integers or doubles or stringsOptional
root_idstringOptional
parent_idstringOptional
merge_parent_idstringOptional
created_atdatetimeOptional
project_idintegerOptional

The ID of the project the prompt belongs to.

Errors

Built with