Skip to main content
POST
/
botVariables
/
{botId}
/
{sourceId}
Update a source variable
curl --request POST \
  --url https://api.closebot.com/botVariables/{botId}/{sourceId} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
[
  {
    "id": "<string>",
    "value": "<string>"
  }
]
'
{
  "type": "<string>",
  "title": "<string>",
  "status": 123,
  "detail": "<string>",
  "instance": "<string>"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

botId
string
required

The bot ID.

sourceId
string
required

The source ID.

Body

The list of variables to update.

id
string | null
value
string | null

Response

Success