Skip to main content
POST
/
bot
/
{id}
/
source
/
{sourceId}
Attach a source to a bot
curl --request POST \
  --url https://api.closebot.com/bot/{id}/source/{sourceId} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "tags": [
    {
      "name": "<string>",
      "approveDeny": true,
      "id": "<string>"
    }
  ],
  "channels": [
    "<string>"
  ],
  "personaNameOverride": "<string>",
  "enabled": true
}
'

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

id
string
required

The bot ID.

sourceId
string
required

The source ID.

Body

tags
object[] | null
channels
string[] | null
personaNameOverride
string | null
enabled
boolean | null

Response

200

Success