---
title: "Put Github Integration"
method: PUT
path: "/v1/orgs/{org_id}/integrations/github"
tags: ["github"]
---

# Put Github Integration

`PUT /v1/orgs/{org_id}/integrations/github`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/orgs/{org_id}/integrations/github`
- Auth: none declared

FULL-REPLACE the org's repo→project links with the provided set (Slack-style
declarative PUT). Binds each named installation to this org; links absent from
the payload are removed. Returns the fresh status.

## Path parameters

- `org_id` string, required

## Request body

- RepoLinksReplaceIn
  - `repo_links` RepoLinkWire[]
    - `installation_id` integer, required
    - `repo_full_name` string, required
    - `project_uuid` string, required
    - `config` RepoLinkConfig
      - `strict` boolean
      - `languages` string[], nullable
      - `comment` boolean

## Response `200`

Successful Response

- GithubStatusOut
  - `connected` boolean, required
  - `install_url` string, nullable
  - `installations` InstallationOut[], required
    - `installation_id` integer, required
    - `account_login` string, required
    - `account_type` string, nullable
    - `suspended` boolean, required
    - `repositories` string[]
  - `repo_links` RepoLinkWire[], required
    - `installation_id` integer, required
    - `repo_full_name` string, required
    - `project_uuid` string, required
    - `config` RepoLinkConfig
      - `strict` boolean
      - `languages` string[], nullable
      - `comment` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
