List agent branches

Returns a list of branches an agent has

路径参数

agent_idstring必需
The id of an agent. This is returned on agent creation.

请求头

xi-api-keystring可选

查询参数

include_archivedboolean可选默认为 false
Whether archived branches should be included
limitinteger可选<=100默认为 100
How many results at most should be returned
include_commit_statusboolean可选默认为 false

Whether to compute how far each branch has diverged from main (commits_ahead/commits_behind). This walks the version DAG of every branch, so it is slow on agents with long histories and is off by default, leaving those fields null.

响应

Successful Response
resultslist of objects
metaobject可选

错误

422
Branches List Request Unprocessable Entity Error