Integrations: Git
🔒 Включение или отключение отслеживания конкретного Git-репозитория.
Включение или отключение отслеживания конкретного Git-репозитория.
Access: authorized (10 ) · Scope: write
Allows: integration:git (все обязательны; без ресурса)
TypeScript (copy-paste)
POST /integration/git/updateRepoStatus
<details open><summary><b>Params</b></summary>export interface IntegrationGitUpdateRepoStatusParams {
ID?: string | null
status?: GitIntegration_Status | null
}
</details>
<details open><summary><b>Response</b></summary>
export type IntegrationGitUpdateRepoStatusResponse = IServerResponse<Resp_integration_git_updateRepoStatus>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
post/integration/git/updateRepoStatus
Request
- Base URL: http://localhost
- URL: http://localhost/integration/git/updateRepoStatus
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Query parameters
IDstring uuid nullable
Можно передать header ID (сервер мержит headers+query)
status10 | 2 | 1 | 0 | -1 | -10 | -100
sync = 10, waiting = 2, enabled = 1, disabled = 0, warn = -1, error = -10, removed = -100
Можно передать header status (сервер мержит headers+query)
Headers
devIDstring uuid required
UUID устройства клиента
tzstring required
Example:Europe/Moscow
Таймзона клиента (IANA или offset)
appstring required
Example:kosmodrom-web
Имя клиентского приложения
appVerstring required
Example:1.0.0
Версия клиента
rKeystring
Уникальный ключ запроса для логов/саппорта
Response
OK — IServerResponse<Resp_integration_git_updateRepoStatus>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.