List agent branches

Returns a list of branches an agent has

Paramètres de chemin

agent_idstringRequis
The id of an agent. This is returned on agent creation.

En-têtes

xi-api-keystringOptionnel

Paramètres de requête

include_archivedbooleanOptionnelPar défaut false
Whether archived branches should be included
limitintegerOptionnel<=100Par défaut 100
How many results at most should be returned
include_commit_statusbooleanOptionnelPar défaut 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.

Réponse

Successful Response
resultslist of objects
metaobjectOptionnel

Erreurs

422
Branches List Request Unprocessable Entity Error