AgentDelete - 删除机器人
API访问域名
说明
机器人必须存在才能删除,已经上线的agent也不能删除,只能删除下线的agent
请求参数
| 名称 |
类型 |
必选 |
中文名 |
说明 |
| Content-Type |
string |
是 |
内容类型 |
固定值:application/json |
| token |
string |
是 |
API KEY |
机器人API KEY。 详细获取方式参考:准备工作 |
| uid |
string |
是 |
用户ID |
详细获取方式参考:准备工作 |
| username |
string |
是 |
用户名 |
详细获取方式参考:准备工作 |
Parameter参数
| 名称 |
类型 |
必选 |
中文名 |
说明 |
| agentId |
string |
是 |
AI agent的ID |
|
Body参数
| 名称 |
类型 |
必选 |
中文名 |
说明 |
| agentName |
string |
是 |
agent名称 |
|
| id |
string |
是 |
AI agent的ID |
|
响应参数
| 名称 |
类型 |
必选 |
中文名 |
说明 |
| time |
integer |
是 |
时间 |
1722239381781 |
| data |
null |
是 |
数据 |
null |
| code |
integer |
是 |
状态码 |
200 |
| msg |
string |
是 |
状态信息 |
OK |
请求示例
1curl --location --request POST 'https://keyue.cloud.baidu.com/open/v1/api/v3/agents/delete?agentId=xxxx' \
2--header 'token: xxxx' \
3--header 'uid: xxxx' \
4--header 'username: xxxxxxxx' \
5--header 'Content-Type: application/json' \
6--data '{
7 "agentName": "test",
8 "id": "xxxx"
9}'
响应示例
![]()