---
title: "🔒 #26676 Ручная правка технического паспорта репозитория. Паспорт помечается правкой: сборка при привязке к проекту его не перезапишет, а положит черновиком."
method: POST
path: "/integration/git/passport/save"
tags: ["Integrations: Git"]
---

# 🔒 #26676 Ручная правка технического паспорта репозитория. Паспорт помечается правкой: сборка при привязке к проекту его не перезапишет, а положит черновиком.

`POST /integration/git/passport/save`

## Request

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

#26676 Ручная правка технического паспорта репозитория. Паспорт помечается правкой: сборка при привязке к проекту его не перезапишет, а положит черновиком.

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

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

### TypeScript (copy-paste)

**`POST /integration/git/passport/save`**

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

```typescript
export interface IntegrationGitPassportSaveBody {
  repositoryID: string
  text: string
}
```

</details>

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

```typescript
export type IntegrationGitPassportSaveResponse = IServerResponse<Resp_integration_git_passport_save>

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)

## Headers

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

## Request body

- IntegrationGitPassportSaveBody: JSON body for `integration/git/passport/save`
  - `repositoryID` string, uuid, required
  - `text` string, required

## Response `200`

OK — `IServerResponse<Resp_integration_git_passport_save>`

- object
  - `code` integer, required
  - `data` RespIntegrationGitPassportSave, required: ResponseData for integration/git/passport/save
    - `passport` GitRepositoryPassportType, required: Stub schema for unresolved $ref GitRepositoryPassport_Type (from ResponseData AST)
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: the text is empty or longer than 40000 characters
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege integration:git required
- `404`: NotFound: Git repository with specified ID does not exist
- `406`: TimeResync — расхождение rts с сервером
- `422`: UnprocessableContent: the repository has no passport yet

---

[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)
