Skip to main content
PUT
/
personas
/
{persona_id}
Update Persona
curl --request PUT \
  --url https://api.zo.computer/personas/{persona_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "prompt": "<string>",
  "model": "<string>",
  "image": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "prompt": "<string>",
  "model": "<string>",
  "image": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Zo API key (zo_sk_...)

Path Parameters

persona_id
string
required

Body

application/json
name
string | null

New display name

Maximum string length: 64
prompt
string | null

New system prompt

Maximum string length: 10000
model
string | null

New AI model ID

image
string | null

New avatar image URL, or null to remove

Response

Successful Response

id
string
required

Unique persona identifier

name
string
required

Display name

prompt
string
required

System prompt defining behavior

model
string | null
required

AI model ID, or null for system default

image
string | null
required

Avatar image URL

created_at
string
required

ISO 8601 creation timestamp

updated_at
string
required

ISO 8601 last update timestamp