---
title: "🔒 Обновление настроек интеграции с Git (название, параметры подключения, сопоставление пользователей)."
method: POST
path: "/integration/git/update"
tags: ["Integrations: Git"]
---

# 🔒 Обновление настроек интеграции с Git (название, параметры подключения, сопоставление пользователей).

`POST /integration/git/update`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/integration/git/update`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Обновление настроек интеграции с Git (название, параметры подключения, сопоставление пользователей).

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `integration:git` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`POST /integration/git/update`**

<details open><summary><b>Params</b></summary>

```typescript
export interface IntegrationGitUpdateParams {
  ID: string
}
```

</details>

<details open><summary><b>Body</b></summary>

```typescript
export interface IntegrationGitUpdateBody {
  title?: string | null
  params?: {
  host?: string | null
  port?: number | null
  requestTimeout?: number | null
  token?: string | null
} | null
  users?: Record<string, any> | null
  autoProvisionUsers?: boolean | null
  adminActions?: {
  blockUsers?: boolean | null
  systemHook?: boolean | null
} | null
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type IntegrationGitUpdateResponse = IServerResponse<Resp_integration_git_update>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `ID` string, uuid, required

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- IntegrationGitUpdateBody: JSON body for `integration/git/update`
  - `title` string, nullable
  - `params` object, nullable
    - `host` string, nullable
    - `port` integer, nullable
    - `requestTimeout` integer, nullable
    - `token` string, nullable
  - `users` object, nullable
  - `autoProvisionUsers` boolean, nullable
  - `adminActions` object, nullable
    - `blockUsers` boolean, nullable
    - `systemHook` boolean, nullable

## Response `200`

OK — `IServerResponse<Resp_integration_git_update>`

- object
  - `code` integer, required
  - `data` RespIntegrationGitUpdate, required: Empty response object
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: Invalid body
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege integration:git required
- `404`: NotFound: Git integration with specified ID does not exist
- `406`: TimeResync — расхождение rts с сервером

---

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