Integrations: Git

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

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

Access: authorized (10 ) · Scope: write

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

TypeScript (copy-paste)

POST /integration/git/passport/save

<details open><summary><b>Body</b></summary>
export interface IntegrationGitPassportSaveBody {
  repositoryID: string
  text: string
}
</details> <details open><summary><b>Response</b></summary>
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 · raw: /docs/api-types.ts

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

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Request body

repositoryIDstring uuid required
textstring required

Response

OK — IServerResponse<Resp_integration_git_passport_save>

codeinteger required
srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.