Skip to content

Update a persona

PATCH
/brands/{brandId}/brand-personas/{brandPersonaId}
curl --request PATCH \
--url https://api.traaker.ai/api/public/v1/brands/example/brand-personas/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "tone": "neutral", "ageRange": "example", "gender": "female", "budget": "example", "objections": [ "example" ], "decisionCriteria": [ "example" ], "selectionFocus": "broad", "domainExpertise": "novice", "languageStyle": "professional", "receptiveness": "accepting", "tags": [ "example" ] }'

Live: the next run of every linked conversation uses the new traits.

brandId
required
string
brandPersonaId
required
string
Media type application/json

Partial update: omitted fields are kept, null (or [] / "") CLEARS an optional field. name, description and tone can be changed but not cleared. Unknown fields are rejected with 400.

object
name

Title of the persona, as shown in the conversation editor.

string
>= 1 characters <= 80 characters
description

Who this person is. Must not name the brand (400).

string
>= 1 characters <= 600 characters
tone
string
Allowed values: neutral direct skeptical enthusiastic technical novice
ageRange
string | null
<= 40 characters
gender
string | null
Allowed values: female male unspecified
budget
string | null
<= 80 characters
objections

Objections the persona raises. Must not name the brand. At most 5 items of 200 characters.

Array<string> | null
<= 5 items
decisionCriteria

What the persona decides on. Must not name the brand. At most 5 items of 200 characters.

Array<string> | null
<= 5 items
selectionFocus
string | null
Allowed values: broad focused
domainExpertise
string | null
Allowed values: novice intermediate expert
languageStyle
string | null
Allowed values: professional casual typos
receptiveness
string | null
Allowed values: accepting curious challenger
tags

At most 20. Normalised to lowercase-kebab (spaces become hyphens) and deduplicated.

Array<string> | null
<= 20 items

OK

Media type application/json
object
data
required

A reusable buyer profile (« Qui est-il ? ») that conversations link to through their brandPersonaId. Edits are live: the next run of every linked conversation uses the new traits. Optional scalars are null and optional lists [] when unset, never omitted.

object
brandPersonaId
required
string
brandId
required
string
name
required
string
description
required
string
tone
required
string
Allowed values: neutral direct skeptical enthusiastic technical novice
ageRange
required
string | null
gender
required
string | null
Allowed values: female male unspecified
budget
required
string | null
objections
required
Array<string>
decisionCriteria
required
Array<string>
selectionFocus
required
string | null
Allowed values: broad focused
domainExpertise
required
string | null
Allowed values: novice intermediate expert
languageStyle
required
string | null
Allowed values: professional casual typos
receptiveness
required
string | null
Allowed values: accepting curious challenger
tags
required
Array<string>
linkedConversations
required

Conversations (any status) linking this persona. It cannot be deleted while this is above 0.

integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
meta
required
object
brandId
string
brandPersonaId
string

Example

{
"data": {
"tone": "neutral",
"gender": "female",
"selectionFocus": "broad",
"domainExpertise": "novice",
"languageStyle": "professional",
"receptiveness": "accepting"
}
}

Invalid or unknown query parameter or body field, or a text field names the brand.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Missing, malformed or revoked API key.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

The account’s subscription is not active.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Conversations is not enabled for this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

No such brand or persona on this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Hourly rate limit exhausted.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}