PATCH
/
v0
/
chatbots
/
{chatbotId}
/
settings
/
personas
/
{personaId}
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/personas/{personaId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "instructions": "<string>"
}'
{
  "success": true,
  "message": "Updated custom persona of the chatbot successfully",
  "data": {
    "persona": {
      "id": "8224ca11-5ec3-434c-bfcc-880dcf3990c8",
      "title": "Custom",
      "description": "Custom Persona",
      "instructions": "Answer in an engaging and interactive way."
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chatbotId
string
required

Id of the chatbot

personaId
string
required

Id of the chatbot persona

Body

application/json
Request body to update custom persona of the chatbot

Request body

title
string | null

Title of the persona.

description
string | null

Short description about the persona.

instructions
string | null

Actual instructions that will be specified to the AI while generating the response.

Response

200
application/json
OK

Success response

success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server