---
title: "ExchangeOntologyGithubCode"
method: POST
path: "/textql.rpc.public.patches.OntologyManagementService/ExchangeOntologyGithubCode"
tags: ["OntologyManagementService"]
---

# ExchangeOntologyGithubCode

`POST /textql.rpc.public.patches.OntologyManagementService/ExchangeOntologyGithubCode`

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- TextqlRpcPublicPatchesExchangeOntologyGithubCodeRequest
  - `code` string
  - `state` string
  - `codeVerifier` string

## Response `200`

Success

- TextqlRpcPublicPatchesExchangeOntologyGithubCodeResponse
  - `success` boolean
  - `installations` TextqlRpcPublicPatchesGithubInstallation[]
    - `id` string
    - `account` string
    - `repos` TextqlRpcPublicPatchesGithubInstallationRepo[]
      - `fullName` string
      - `cloneUrl` string
      - `defaultBranch` string
      - `private` boolean
    - `reposError` string

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/versions/31ce2b0c4427/schema)
