Update agent branch

Update agent branch properties such as archiving status and protection level

Parâmetros de caminho

agent_idstringObrigatório
The id of an agent. This is returned on agent creation.
branch_idstringObrigatório
Unique identifier for the branch.

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an object.
namestringOpcional1-140 characters
New name for the branch. Must be unique within the agent.
is_archivedbooleanOpcional
Whether the branch should be archived
protection_statusenumOpcionalPadrão é writer_perms_required
The protection level for the branch
Valores permitidos:

Resposta

Successful Response
idstring
namestring
agent_idstring
descriptionstring
created_atinteger
last_committed_atinteger
is_archivedboolean
protection_statusenumOpcionalPadrão é writer_perms_required
Valores permitidos:
access_infoobjectOpcional
Access information for the branch
current_live_percentagedoubleOpcionalPadrão é 0
Percentage of traffic live on the branch
parent_branchobjectOpcional
Parent branch of the branch
most_recent_versionslist of objectsOpcional
Most recent versions on the branch

Erros

422
Branches Update Request Unprocessable Entity Error