---
title: "update doc group_ids"
method: PUT
path: "/admin/kb/{kb_id}/document/group_ids"
tags: ["document"]
---

# update doc group_ids

`PUT /admin/kb/{kb_id}/document/group_ids`

## Path parameters

- `kb_id` integer, required

## Request body

- SvcUpdateGroupIDsReq
  - `group_ids` integer[]
  - `ids` integer[], required
  - `type` 0 | 1 | 2 | 3 | 4, required

## Response `200`

OK

- ContextResponse
  - `data` unknown
  - `err` string
  - `msg` string
  - `success` boolean
  - `trace_id` string

## Changes

- **2025-12-30** `01ffb1712e8a` — 1 info
  - endpoint added
- **2025-12-26** `4207addadff2` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/chaitin/apis/koalaqa-api/changes/admin/kb/:kb_id/document/group_ids/put.md)

---

[API](https://skmtc.dev/chaitin/apis/koalaqa-api.md) · [All operations](https://skmtc.dev/chaitin/apis/koalaqa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/koalaqa-api/revisions/29abcc05d9fd/schema)
