API

GithubOnboarding

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/github_onboarding load GitHub onboarding state

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

github_onboarding, err := client.GithubOnboarding(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_onboarding)

Lua

Construct client as shown in the Lua setup, then call the operations:

local github_onboarding, err = client:GithubOnboarding():load({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$github_onboarding = $client->GithubOnboarding()->load(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

github_onboarding = client.GithubOnboarding().load({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

github_onboarding = client.GithubOnboarding.load({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const github_onboarding = await client.GithubOnboarding().load({ organization_id: "example" })

Fields

Field Type Required Description
accounts array Yes Accounts
active_batch_id one,string,null Yes The batch the wizard's import step should resume, the most recent batch still working, else the most recent overall.
batches array Yes Batches
capabilities object Yes Capabilities
installations array Yes Installations

load

GET /api/v1/organizations/{organization_id}/github_onboarding

Operation ID: api_v1_organization_github_onboarding.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: GitHub onboarding state

application/json

Property Type Required Description
accounts array of object Yes
accounts[].account_login string Yes
accounts[].github_app_installation_id string Yes
accounts[].repositories array of object Yes
accounts[].repositories[].already_imported boolean Yes
accounts[].repositories[].default_branch string Yes
accounts[].repositories[].empty boolean Yes
accounts[].repositories[].full_name string Yes
accounts[].repositories[].html_url string (uri) Yes
accounts[].repositories[].name string Yes
accounts[].repositories[].owner string Yes
accounts[].repositories[].private boolean Yes
accounts[].repositories[].updated_at string Yes
accounts[].repositories[].visibility string Yes
active_batch_id string Yes The batch the wizard's import step should resume, the most recent batch still working, else the most recent overall.
batches array of object Yes
batches[].account_login string Yes
batches[].complete boolean Yes Whether every item has settled and the wizard should treat the import as finished.
batches[].created_at string (date-time) Yes
batches[].failed_item_count integer Yes
batches[].github_app_installation_id string Yes
batches[].id string Yes
batches[].imported_item_count integer Yes
batches[].item_count integer Yes
batches[].items array of object Yes
batches[].items[].can_retry boolean Yes
batches[].items[].created_at string (date-time) Yes
batches[].items[].error_message string Yes
batches[].items[].id string Yes
batches[].items[].include_in_home boolean Yes
batches[].items[].phase string Yes
batches[].items[].repository_full_name string Yes
batches[].items[].repository_id string Yes
batches[].items[].repository_name string Yes
batches[].items[].repository_owner string Yes
batches[].items[].repository_slug string Yes
batches[].items[].root_path string Yes
batches[].items[].status enum: queued, running, succeeded, failed, already_imported, invalid Yes
batches[].items[].terminal boolean Yes Whether this item has settled (no further work expected without a retry).
batches[].items[].updated_at string (date-time) Yes
batches[].status enum: running, completed Yes
batches[].terminal_item_count integer Yes
batches[].updated_at string (date-time) Yes
capabilities object Yes
capabilities.can_manage_connections boolean Yes
installations array of object Yes
installations[].account_avatar_url string (uri) Yes
installations[].account_id string Yes
installations[].account_login string Yes
installations[].created_at string (date-time) Yes
installations[].created_at_label string Yes
installations[].id string Yes
installations[].installation_id string Yes
installations[].installed_at string (date-time) Yes
installations[].installed_at_label string Yes
installations[].manage_access_url string (uri) Yes
installations[].organization_id string Yes
installations[].permission_entries array of object Yes
installations[].permission_entries[].access string Yes
installations[].permission_entries[].key string Yes
installations[].permission_entries[].name string Yes
installations[].permissions object Yes
installations[].status enum: active, suspended Yes
installations[].suspended_at string (date-time) Yes
installations[].suspended_at_label string Yes
installations[].updated_at string (date-time) Yes
installations[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway