Update agent branch
Update agent branch properties such as name, description, archiving status, protection level, and auto-rebase onto main
Path parameters
agent_id
The id of an agent. This is returned on agent creation.
branch_id
Unique identifier for the branch.
Headers
xi-api-key
Request
This endpoint expects an object.
name
New name for the branch. Must be unique within the agent.
description
New description for the branch. Pass an empty string to clear it.
is_archived
Whether the branch should be archived
protection_status
The protection level for the branch
Allowed values:
auto_rebase
When true, rebase this branch onto main automatically after each new main version. Cannot be enabled on the main branch.
Response
Successful Response
id
name
agent_id
description
created_at
last_committed_at
is_archived
protection_status
Allowed values:
auto_rebase
access_info
Access information for the branch
current_live_percentage
Percentage of traffic live on the branch
parent_branch
Parent branch of the branch
most_recent_versions
Most recent versions on the branch
Errors
422
Unprocessable Entity Error