Update agent branch

Update agent branch properties such as archiving status and protection level

路径参数

agent_idstring必需
The id of an agent. This is returned on agent creation.
branch_idstring必需
Unique identifier for the branch.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
namestring可选1-140 characters
New name for the branch. Must be unique within the agent.
is_archivedboolean可选
Whether the branch should be archived
protection_statusenum可选默认为 writer_perms_required
The protection level for the branch
允许的值:

响应

Successful Response
idstring
namestring
agent_idstring
descriptionstring
created_atinteger
last_committed_atinteger
is_archivedboolean
protection_statusenum可选默认为 writer_perms_required
允许的值:
access_infoobject可选
Access information for the branch
current_live_percentagedouble可选默认为 0
Percentage of traffic live on the branch
parent_branchobject可选
Parent branch of the branch
most_recent_versionslist of objects可选
Most recent versions on the branch

错误

422
Branches Update Request Unprocessable Entity Error