Skip to main content
PUT
/
persona
/
{id}
Update a persona
curl --request PUT \
  --url https://api.closebot.com/persona/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "personaName": "<string>",
  "description": "<string>",
  "voiceStyles": "<string>",
  "howToRespond": "<string>",
  "typoPercent": 123,
  "breakupLargeMessagePercent": 123,
  "responseTime": "<string>",
  "responseDelay": 123,
  "aiProviderPreferences": [
    "<string>"
  ],
  "folderId": "<string>",
  "favorited": true,
  "trash": true,
  "default": true,
  "color": "<string>",
  "imageData": "<string>"
}
'
{
  "id": "<string>",
  "agencyId": "<string>",
  "personaName": "<string>",
  "description": "<string>",
  "color": "<string>",
  "imageUri": "<string>",
  "voiceStyles": "<string>",
  "howToRespond": "<string>",
  "typoPercent": 123,
  "breakupLargeMessagePercent": 123,
  "responseTime": "<string>",
  "responseDelay": 123,
  "modifiedAt": "<string>",
  "modifiedBy": "<string>",
  "aiProviderPreferences": [
    "<string>"
  ],
  "folderId": "<string>",
  "botIds": [
    "<string>"
  ],
  "bots": [
    {
      "name": "<string>",
      "id": "<string>"
    }
  ],
  "favorited": true,
  "default": true
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

id
string
required

The ID of the persona to update.

Body

The persona input.

personaName
string | null

The name of the persona

description
string | null

The description of the persona

voiceStyles
string | null

The voice styles of the persona

howToRespond
string | null

The how to respond of the persona

typoPercent
integer<int32> | null

The typo percent of the persona

breakupLargeMessagePercent
integer<int32> | null

The breakup large message percent of the persona

responseTime
string | null

The response time of the persona

responseDelay
integer<int32> | null

The response delay of the persona

aiProviderPreferences
string[] | null

The AI provider preferences of the persona

folderId
string | null

The folder ID of the persona

favorited
boolean | null

Whether the persona is favorited

trash
boolean | null

Whether the persona is trashed

default
boolean | null

Whether the persona is default

color
string | null

The color of the persona

imageData
string | null

The image data of the persona

Response

Success

id
string | null
agencyId
string | null
personaName
string | null
description
string | null
color
string | null
imageUri
string | null
voiceStyles
string | null
howToRespond
string | null
typoPercent
integer<int32>
breakupLargeMessagePercent
integer<int32>
responseTime
string | null
responseDelay
integer<int32>
modifiedAt
string | null
modifiedBy
string | null
aiProviderPreferences
string[] | null
folderId
string | null
botIds
string[] | null
bots
object[] | null
favorited
boolean
default
boolean