GithubOnboardingImportBatch
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/import_batches/{github_import_batch_id} |
load |
GitHub import batch |
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_import_batch, err := client.GithubOnboardingImportBatch(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(github_onboarding_import_batch)
Lua
Construct client as shown in the Lua setup, then call the operations:
local github_onboarding_import_batch, err = client:GithubOnboardingImportBatch():load({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$github_onboarding_import_batch = $client->GithubOnboardingImportBatch()->load(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
github_onboarding_import_batch = client.GithubOnboardingImportBatch().load({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
github_onboarding_import_batch = client.GithubOnboardingImportBatch.load({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const github_onboarding_import_batch = await client.GithubOnboardingImportBatch().load({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
account_login |
string |
Yes | Account Login |
complete |
boolean |
Yes | Whether every item has settled and the wizard should treat the import as finished. |
created_at |
string |
Yes | Created At |
failed_item_count |
integer |
Yes | Failed Item Count |
github_app_installation_id |
string |
Yes | Github App Installation Id |
id |
string |
Yes | Id |
imported_item_count |
integer |
Yes | Imported Item Count |
item_count |
integer |
Yes | Item Count |
items |
array |
Yes | Items |
status |
string |
Yes | Status |
terminal_item_count |
integer |
Yes | Terminal Item Count |
updated_at |
string |
Yes | Updated At |
load
GET /api/v1/organizations/{organization_id}/github_onboarding/import_batches/{github_import_batch_id}
Operation ID: get_api_v1_organizations_organization_id_github_onboarding_import_batches_github_import_batch_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
github_import_batch_id |
path |
string |
Yes |
Responses
200: GitHub import batch
application/json
| Property | Type | Required | Description |
|---|---|---|---|
batch |
object |
Yes | |
batch.account_login |
string |
Yes | |
batch.complete |
boolean |
Yes | Whether every item has settled and the wizard should treat the import as finished. |
batch.created_at |
string (date-time) |
Yes | |
batch.failed_item_count |
integer |
Yes | |
batch.github_app_installation_id |
string |
Yes | |
batch.id |
string |
Yes | |
batch.imported_item_count |
integer |
Yes | |
batch.item_count |
integer |
Yes | |
batch.items |
array of object |
Yes | |
batch.items[].can_retry |
boolean |
Yes | |
batch.items[].created_at |
string (date-time) |
Yes | |
batch.items[].error_message |
string |
Yes | |
batch.items[].id |
string |
Yes | |
batch.items[].include_in_home |
boolean |
Yes | |
batch.items[].phase |
string |
Yes | |
batch.items[].repository_full_name |
string |
Yes | |
batch.items[].repository_id |
string |
Yes | |
batch.items[].repository_name |
string |
Yes | |
batch.items[].repository_owner |
string |
Yes | |
batch.items[].repository_slug |
string |
Yes | |
batch.items[].root_path |
string |
Yes | |
batch.items[].status |
enum: queued, running, succeeded, failed, already_imported, invalid |
Yes | |
batch.items[].terminal |
boolean |
Yes | Whether this item has settled (no further work expected without a retry). |
batch.items[].updated_at |
string (date-time) |
Yes | |
batch.status |
enum: running, completed |
Yes | |
batch.terminal_item_count |
integer |
Yes | |
batch.updated_at |
string (date-time) |
Yes |