Skip to main content
PUT
/
bot-live-demo
/
{botId}
/
{key}
Update Live Demo
curl --request PUT \
  --url https://api.closebot.com/bot-live-demo/{botId}/{key} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "mimicSourceId": "<string>",
  "active": true
}
'
{
  "name": "<string>",
  "key": "<string>",
  "organizationId": "<string>",
  "active": true,
  "mimicSourceId": "<string>",
  "sourceVariables": [
    {
      "id": "<string>",
      "name": "<string>",
      "value": "<string>"
    }
  ]
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

botId
string
required

The ID of the Bot

key
string
required

The key of the live demo

Body

name
string | null

The friendly-name of the live demo.

mimicSourceId
string | null

The source ID to mimic when conversing.

active
boolean

Whether or not this demo is active.

Response

Success

name
string | null
key
string | null
organizationId
string | null
active
boolean
mimicSourceId
string | null
sourceVariables
object[] | null