cURL
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": {} } '
200
Example
{ "code": 0, "msg": "ok", "data": {} }
更新现有机器人实例的配置
使用 X-API-Key 请求头进行 API 密钥认证。 示例:X-API-Key: lbk_your_api_key_here
X-API-Key: lbk_your_api_key_here
机器人更新成功
0
"ok"