Skip to main content
PUT
/
personas
/
{id}
Update Persona
curl --request PUT \
  --url https://server.promptwatch.com/api/v2/personas/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "ageRange": "<string>",
  "educationLevel": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "ageRange": "<string>",
  "educationLevel": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Path Parameters

id
string<uuid>
required

Persona ID

Body

application/json
name
string

Persona name

Minimum string length: 1
description
string

Persona description

Minimum string length: 1
ageRange
string

Target age range

educationLevel
string

Education level

Response

Default Response

id
string<uuid>
required

Persona unique identifier

name
string
required

Persona name

description
string
required

Persona description

createdAt
string<date-time>
required

Creation timestamp

updatedAt
string<date-time>
required

Last update timestamp

ageRange
string | null

Target age range

educationLevel
string | null

Education level