PATCH
/
chatbots
/
{chatbotId}
Update chatbot settings
curl --request PATCH \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "visibility": "<string>"
}'
{
    "status": "success",
    "data": {
        "id": "9761342719",
        "name": "My chatbot",
        "version": "2.0",
        "visibility": "public",
        "created_at": "2024-06-17T12:00:00+00:00"
    }
}

Request parameters

Path

chatbotId
string
required
The chatbot ID.

Body

name
string
The chatbot name.
visibility
string
The visibility of the chatbot. Possible values are public and private.

Response

status
string
The status of the request. Will be success if the request was successful, otherwise error.
data
object
{
    "status": "success",
    "data": {
        "id": "9761342719",
        "name": "My chatbot",
        "version": "2.0",
        "visibility": "public",
        "created_at": "2024-06-17T12:00:00+00:00"
    }
}