Skip to main content
PATCH
Update Prompt Personas

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.

Body

application/json
action
enum<string>
required

add the personas, replace the prompts' personas with exactly them, or remove them.

Available options:
add,
replace,
remove
prompts
string<uuid>[]
required

UUIDs of the project's prompts. A persona variant stands for the prompt it was created from. An unknown prompt is a 422 on prompts.

Required array length: 1 - 100 elements
personas
string[]
required

Persona UUIDs or names (case-insensitive), at most the project's persona limit. An unknown persona is a 422 on personas.{index}.

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

Response

Every prompt of the changed prompts' families: each prompt asked without a persona, then its remaining persona variants. Deleted variants are not included.

prompts
object[]
required