Skip to main content
POST
/
bot
/
{id}
/
saveTools
Save bot tools
curl --request POST \
  --url https://api.closebot.com/bot/{id}/saveTools \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
[
  {
    "type": "<string>",
    "enabled": true,
    "options": "<unknown>"
  }
]
'
[
  {
    "id": "<string>",
    "type": "<string>",
    "enabled": true,
    "options": {}
  }
]

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

id
string
required

The bot ID.

Body

type
string | null

The type of the tool

enabled
boolean

Whether the tool is enabled

options
any

The options for the tool

Response

Success

id
string | null
type
string | null
enabled
boolean
options
object