Skip to main content
PATCH
Update Prompt

Authorizations

Authorization
string
header
required

Team API key created in Team Settings. Use it with URLs for the same team.

Path Parameters

project
string<uuid>
required

Project UUID.

prompt
string<uuid>
required

Prompt UUID.

Body

application/json

Partial update. Only the fields present are applied. A prompt's text, country and persona cannot be changed. Every field is checked before anything is written; then topic, buying_stage, remove_personas and add_personas are applied in that order, together, and status last.

topic
string | null

Topic name (created if it doesn't exist), or null to clear the topic.

Maximum string length: 255
status
enum<string>

Activating is subject to the project's prompt limit and the team's credits. Not accepted for a persona variant, which follows the status of the prompt it was created from (422 on status).

Available options:
active,
inactive
buying_stage
enum<string>

The buying stage of the prompt and its persona variants. For a persona variant it is set on the prompt it was created from, so the whole family changes. Kept as set: the automatic classification never overwrites it. Needs the tag edit permission.

Available options:
awareness,
consideration,
decision
add_personas
string[]

Also ask the prompt as these personas, each through a persona variant of its own that counts towards the prompt limit and credits. A persona already asked is left as it is. Only an active prompt can be asked as personas (422 on add_personas, also when the same request activates it: activate it first). When the variants don't fit the prompt limit or credits, the request is refused with a 422 on add_personas and nothing changes. Persona UUIDs or names (case-insensitive) of the project's live personas, at most the project's persona limit. An unknown or deleted persona is a 422 on add_personas.{index}; a persona in both lists is a 422 on remove_personas. For a persona variant they apply to the prompt it was created from. Needs the persona permission (projects:write).

Required array length: 1 - 10 elements
Maximum string length: 255
remove_personas
string[]

Stop asking the prompt as these personas by deleting their persona variants and their answers, which leave every report. A persona the prompt is not asked as changes nothing. A persona variant cannot remove its own persona (422 on remove_personas): delete it instead. Removals are applied before additions, so the places they free count for add_personas. Persona UUIDs or names (case-insensitive) of the project's live personas, at most the project's persona limit. An unknown or deleted persona is a 422 on remove_personas.{index}; a persona in both lists is a 422 on remove_personas. For a persona variant they apply to the prompt it was created from. Needs the persona permission (projects:write).

Required array length: 1 - 10 elements
Maximum string length: 255

Response

The updated prompt, with persona_prompts listing the personas it is now asked as.

uuid
string<uuid>
required
text
string
required

The prompt text.

keyword
string | null
required
status
enum<string>
required
Available options:
suggestion,
declined,
inactive,
active
search_volume
integer | null
required

Most recent search volume for the prompt's keyword, when known.

topic
object | null
required
persona
object | null
required

The persona the prompt is asked as, or null for a generic prompt (reported as no_persona, the Baseline in the app).

source_prompt_uuid
string<uuid> | null
required

For a prompt asked as a persona (a persona variant), the prompt it was created from, whose text it shares. Null for every other prompt.

persona_prompts
object[] | null
required

The personas a prompt without a persona is asked as: one entry per live persona variant, with the variant's uuid and its persona, ordered by persona name. Empty when the prompt is asked as no persona; null for a persona variant, which is asked as its own persona. Change it with add_personas and remove_personas on PATCH /api/v1/projects/{project}/prompts/{prompt}.

buying_stage
enum<string>
required

The prompt's buying stage. A prompt and its persona variants always share one stage. A new prompt is consideration until it is classified, usually within minutes. Set it with buying_stage on PATCH /api/v1/projects/{project}/prompts/{prompt}.

Available options:
awareness,
consideration,
decision
country
object
required
tags
object[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required