API

GithubAppInstallation

Operations

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

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/github_app/installations/{id}/check_connection create Connection verification requested or already pending
GET /api/v1/organizations/{organization_id}/github_app/installations list GitHub App installations linked to the organization
DELETE /api/v1/organizations/{organization_id}/github_app/installations/{id} remove The installation link was removed

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_app_installations, err := client.GithubAppInstallation(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_app_installations)
removed, err := client.GithubAppInstallation(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local github_app_installations, err = client:GithubAppInstallation():list({ organization_id = "example" })
local removed, err = client:GithubAppInstallation():remove({ id = "example_id", organization_id = "example" })

PHP

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

$github_app_installations = $client->GithubAppInstallation()->list(["organization_id" => "example"]);
$client->GithubAppInstallation()->remove(["id" => "example_id", "organization_id" => "example"]);

Python

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

github_app_installations = client.GithubAppInstallation().list({"organization_id": "example"})
client.GithubAppInstallation().remove({"id": "example_id", "organization_id": "example"})

Ruby

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

github_app_installations = client.GithubAppInstallation.list({ "organization_id" => "example" })
client.GithubAppInstallation.remove({ "id" => "example_id", "organization_id" => "example" })

TypeScript

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

const github_app_installations = await client.GithubAppInstallation().list({ organization_id: "example" })
await client.GithubAppInstallation().remove({ id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
account_avatar_url one,string,null Yes Account Avatar Url
account_id one,string,null Yes Account Id
account_login string Yes Account Login
created_at string Yes Created At
created_at_label one,string,null Yes Created At Label
id string Yes Id
installation_id string Yes Installation Id
installed_at one,string,null Yes Installed At
installed_at_label one,string,null Yes Installed At Label
manage_access_url string Yes Manage Access Url
organization_id string Yes Organization Id
permission_entries array Yes GitHub's permission hash as a display-ready list, sorted by name.
permissions object Yes Permissions
status string Yes Status
suspended_at one,string,null Yes Suspended At
suspended_at_label one,string,null Yes Suspended At Label
updated_at string Yes Updated At
updated_at_label one,string,null Yes Updated At Label

create

POST /api/v1/organizations/{organization_id}/github_app/installations/{id}/check_connection

Operation ID: check_connection_api_v1_organization_github_app_installation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

202: Connection verification requested or already pending

application/json

Property Type Required Description
health object Yes
health.accessible_count integer Yes
health.affected_count integer Yes
health.checked_at string Yes
health.checking boolean Yes
health.completed_generation integer Yes
health.configured_count integer Yes
health.generation integer Yes
health.guidance string Yes
health.label string Yes
health.reason string Yes
health.status enum: connected, needs_attention, checking, could_not_verify, not_verified Yes
401: Unauthorized
403: Forbidden
404: Not Found

list

GET /api/v1/organizations/{organization_id}/github_app/installations

Operation ID: api_v1_organization_github_app_installations.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: GitHub App installations linked to the organization

application/json

Property Type Required Description
github_app_installations array of object Yes
github_app_installations[].account_avatar_url string (uri) Yes
github_app_installations[].account_id string Yes
github_app_installations[].account_login string Yes
github_app_installations[].created_at string (date-time) Yes
github_app_installations[].created_at_label string Yes
github_app_installations[].id string Yes
github_app_installations[].installation_id string Yes
github_app_installations[].installed_at string (date-time) Yes
github_app_installations[].installed_at_label string Yes
github_app_installations[].manage_access_url string (uri) Yes
github_app_installations[].organization_id string Yes
github_app_installations[].permission_entries array of object Yes GitHub's permission hash as a display-ready list, sorted by name.
github_app_installations[].permission_entries[].access string Yes
github_app_installations[].permission_entries[].key string Yes
github_app_installations[].permission_entries[].name string Yes
github_app_installations[].permissions object Yes
github_app_installations[].status enum: active, suspended Yes
github_app_installations[].suspended_at string (date-time) Yes
github_app_installations[].suspended_at_label string Yes
github_app_installations[].updated_at string (date-time) Yes
github_app_installations[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/github_app/installations/{id}

Operation ID: api_v1_organization_github_app_installation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
force query boolean No Turn off dependent GitHub sync, CI, and in-flight landings instead of refusing.
uninstall_on_github query boolean No Also uninstall the App from the GitHub account.

Responses

401: Unauthorized
403: The actor is not an organization administrator
404: Not found
409: The installation is still in use and force was not supplied

application/json

Property Type Required Description
blockers array of string Yes Server-authored sentences naming what a forced disconnect would turn off.
error string Yes
502: GitHub rejected the uninstall request
503: GitHub App credentials are not configured, or GitHub is unreachable