Prompts

Update a prompt

Changes a prompt’s text, classification, topic, status (active or archived) or whether it runs. This is how to activate, archive or refile a prompt. Send only the fields to change; the updated prompt is returned.

PATCH/v1/projects/{project_id}/prompts/{prompt_id}

Needs the prompts:write scope

Changes a prompt’s text, classification, topic, status (active or archived) or whether it runs. This is how to activate, archive or refile a prompt. Send only the fields to change; the updated prompt is returned.

Path parameters

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

Request body

Request body
Parameter
textstring | nullbody
themestring | nullbody
intentstring | nullbody
buyer_stageBuyerStage | nullbody
personastring | nullbody
cohortPromptCohort | nullbody
enabledboolean | nullbody
statusPromptStatus | nullbody
topic_idstring (uuid) | nullbody

Response 200: Prompt