Managed Agents - Agent
更新 Agent
Changed on更新 Agent 配置并生成新版本,支持通过 version 防止并发覆盖。
<Accordion title="使用说明">更新指定 Agent 并生成新的不可变版本。可带当前 version;不一致时返回 409,避免覆盖刚发生的改动。仅所有者可更新,已归档 Agent 不可更新。MCP Server 与 mcp_toolset 必须按名称一一对应。
</Accordion>post/agent/managed/v1/agents/{agentId}
Request
- Base URLhttps://agent-api.bigmodel.cn/api
- AuthHTTP bearer
Path parameters
agentIdstring required
agentId 资源标识。
Headers
zai-version'2026-05-26' required
Example:2026-05-26
Managed Agents API 入口要求的基础协议标识,当前只接受 2026-05-26;响应兼容形态由 zai-beta 选择。两个头均需携带。
zai-betastring required
Example:managed-agents-2026-09-22
声明 Managed Agents Beta 协议并选择响应字段与兼容行为。新接入使用 managed-agents-2026-09-22;旧客户端仍可使用 managed-agents-2026-05-26。必须同时携带 zai-version: 2026-05-26。字段差异见 /cn/managed-agents/protocol-versions。
Request body
Example request
{
"model": "glm-5.3",
"skills": [
{
"version": "latest"
}
],
"mcp_servers": [
{
"type": "url",
"name": "knowledge-base",
"url": "https://mcp.example.com/mcp"
}
]
}Response
请求成功。
Example response
{
"id": "agent_01911111-1111-7111-8111-111111111111",
"type": "agent",
"name": "support-agent",
"description": null,
"model": {
"id": "glm-5.3",
"effort": {
"type": "max"
},
"speed": "standard"
},
"system": null,
"tools": [
{
"type": "agent_toolset_20260601",
"default_config": {
"enabled": true,
"permission_policy": {
"type": "always_allow"
}
},
"configs": []
}
],
"skills": [],
"mcp_servers": [],
"metadata": {},
"multiagent": null,
"version": 1,
"created_at": "2026-08-31T08:00:00.000Z",
"updated_at": "2026-08-31T08:00:00.000Z",
"archived_at": null
}Changes
- info
endpoint added
- info