Prompts

Import prompts

Imports a list of prompts into a prompt set and returns the updated set. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/prompt-sets/{prompt_set_id}/import

Needs the prompts:write scope

Imports a list of prompts into a prompt set and returns the updated set. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired
prompt_set_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
ParameterDescription
promptsobject[]bodyrequired
prompts.textstringbodyrequired
prompts.themestringbody
Default""
prompts.intentstringbody
Default""
prompts.buyer_stageBuyerStagebody
Default""
prompts.personastringbody
Default""
prompts.cohortPromptCohortbody
prompts.enabledbooleanbody
Defaulttrue
prompts.topicstringbody
Default""

Response 201: PromptSet