Skip to content
Connect an agent

Organisations

Read a page of an installation's repositories

Reads one page of 100 repositories the installation can reach: ids, names, the default branch, private or not.

POST/orgs/{org}/github/installations/{id}/sync

TL;DR

QuestionAnswer
What does it do?Read a page of an installation's repositories.
What does it take?A JSON body of type GithubSyncBody.
What does it return?Status 200 with a body of type GithubSync.
What can go wrong?400 the body is not valid; 401 not signed in; 403 a member may not (orgs.forbidden), the plan has no GitHub App (plan.github_app_not_included), or the request came from an origin that may not make changes; 404 no such organisation or linked installation (github.installation_not_found); 429 too many requests, or GitHub asked to wait (github.rate_limited); 502 GitHub could not be reached (github.unavailable); 503 the GitHub App is not set up on this server (github.not_configured), or organisations are not. Every failure uses the one error envelope.

What it does

Reads one page of 100 repositories the installation can reach: ids, names, the default branch, private or not. nextPage is the next page to ask for. The owner and an admin, on Pro and Enterprise.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.
idstringyesGitHub's id.

Request body

The body has the type GithubSyncBody.

FieldTypeRequiredDescription
pageintegernominimum 1; maximum 10; default 1.

Responses

StatusMeaningBody
200The page was read.GithubSync
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403A member may not (orgs.forbidden), the plan has no GitHub App (plan.github_app_not_included), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation or linked installation (github.installation_not_found).ErrorResponse
429Too many requests, or GitHub asked to wait (github.rate_limited).ErrorResponse
502GitHub could not be reached (github.unavailable).ErrorResponse
503The GitHub App is not set up on this server (github.not_configured), or organisations are not.ErrorResponse

Response body

A 200 answer has the type GithubSync.

FieldTypeRequiredDescription
syncedintegeryes
nextPageinteger | nullyes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools