更新智能体分支

更新智能体分支属性,例如归档状态和保护级别。

路径参数

agent_idstring必需

智能体 ID。创建智能体时返回此值。

branch_idstring必需

分支的唯一标识符。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
namestring or null可选1-140 characters

分支新名称。必须在该智能体内唯一。

is_archivedboolean or null可选

是否应归档该分支

protection_statusenum or null可选默认为 writer_perms_required

分支保护级别

允许的值:

响应

成功响应

idstring
namestring
agent_idstring
descriptionstring
created_atinteger
last_committed_atinteger
is_archivedboolean
protection_statusenum可选默认为 writer_perms_required
允许的值:
access_infoobject or null可选

分支访问信息

current_live_percentagedouble可选默认为 0

分支上已上线的流量百分比

parent_branchobject or null可选

该分支的父分支

most_recent_versionslist of objects可选

分支上的最新版本

错误

422
Unprocessable Entity Error