Update agent branch

Update agent branch properties such as archiving status and protection level

Parametry ścieżki

agent_idstringWymagany
The id of an agent. This is returned on agent creation.
branch_idstringWymagany
Unique identifier for the branch.

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an object.
namestringOpcjonalny1-140 characters
New name for the branch. Must be unique within the agent.
is_archivedbooleanOpcjonalny
Whether the branch should be archived
protection_statusenumOpcjonalnyDomyślnie writer_perms_required
The protection level for the branch
Dozwolone wartości:

Odpowiedź

Successful Response
idstring
namestring
agent_idstring
descriptionstring
created_atinteger
last_committed_atinteger
is_archivedboolean
protection_statusenumOpcjonalnyDomyślnie writer_perms_required
Dozwolone wartości:
access_infoobjectOpcjonalny
Access information for the branch
current_live_percentagedoubleOpcjonalnyDomyślnie 0
Percentage of traffic live on the branch
parent_branchobjectOpcjonalny
Parent branch of the branch
most_recent_versionslist of objectsOpcjonalny
Most recent versions on the branch

Błędy

422
Branches Update Request Unprocessable Entity Error