Create Prompt

POST

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

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

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 descendents 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 prod.

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
is_prodbooleanOptional

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

Errors