跳转到主要内容
PUT
/
api
/
v1
/
platform
/
bots
/
{bot_uuid}
更新机器人
curl --request PUT \
  --url http://localhost:5300/api/v1/platform/bots/{bot_uuid} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "config": {}
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {}
}

授权

X-API-Key
string
header
必填

使用 X-API-Key 请求头进行 API 密钥认证。 示例:X-API-Key: lbk_your_api_key_here

路径参数

bot_uuid
string<uuid>
必填

请求体

application/json
name
string
config
object

响应

机器人更新成功

code
integer
示例:

0

msg
string
示例:

"ok"

data
object