Contacts
Create custom attribute
Creates a new custom attribute for contacts
post/chatbots/{chatbotId}/custom-attributes
Request
- Base URLhttps://www.chatbase.co/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
chatbotIdstring required
ID of the chatbot
Request body
Example request
{
"name": "department",
"label": "Department",
"type": "text",
"description": "Employee department"
}Response
Custom attribute created successfully
Example response
{
"message": "Success",
"data": {
"name": "department",
"label": "Department",
"type": "text",
"description": "Employee department"
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.