Skip to main content
PUT
/
chatbots
/
{chatbotId}
/
custom-attributes
/
{name}
Update custom attribute
curl --request PUT \
  --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/custom-attributes/{name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "Department",
  "description": "Updated employee department",
  "archived": false
}
'
{
  "message": "Success",
  "data": {
    "name": "department",
    "label": "Department",
    "type": "text",
    "description": "Employee department",
    "archived": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://chatbase.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key in Bearer token format

Path Parameters

chatbotId
string
required

ID of the chatbot

name
string
required

Name of the custom attribute

Body

application/json
label
string

Display label for the attribute

Example:

"Department"

description
string

Description of the attribute

Example:

"Updated employee department"

archived
boolean

Whether the attribute is archived

Example:

false

Response

Custom attribute updated successfully

message
string
Example:

"Success"

data
object

Updated custom attribute