---
title: "更新 Git Bot"
method: PUT
path: "/api/v1/users/git-bots"
tags: ["【用户】Git Bot"]
---

# 更新 Git Bot

`PUT /api/v1/users/git-bots`

更新 Git Bot

## Request body

- DomainUpdateGitBotReq
  - `host_id` string
  - `id` string, required
  - `name` string
  - `platform` 'github' | 'gitlab' | 'gitea' | 'gitee' | 'codeup' | 'cnb' | 'atomgit'
  - `token` string

## Response `200`

成功

- WebResp
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/5a5929cb17f2/schema)
