更新智能体分支
更新智能体分支属性,例如名称、描述、归档状态、保护级别,以及自动变基到 main。
路径参数
agent_id
智能体 ID。创建智能体时返回此值。
branch_id
分支的唯一标识符。
请求头
xi-api-key
请求
This endpoint expects an object.
name
分支新名称。必须在该智能体内唯一。
description
分支的新描述。传入空字符串即可清除。
is_archived
是否应归档该分支
protection_status
分支保护级别
允许的值:
auto_rebase
为 true 时,每次新的主分支版本发布后,都会自动将此分支变基到主分支。不能在主分支上启用。
响应
成功响应
id
name
agent_id
description
created_at
last_committed_at
is_archived
protection_status
允许的值:
auto_rebase
access_info
分支访问信息
current_live_percentage
分支上已上线的流量百分比
parent_branch
该分支的父分支
most_recent_versions
分支上的最新版本
错误
422
Branches Update Request Unprocessable Entity Error