---
title: "Index group"
method: POST
path: "/api/index/v1/indexgroup"
tags: ["Permissions"]
---

# Index group

`POST /api/index/v1/indexgroup`

Add or update a group in the datasource.

## Request body

- IndexGroupRequest — Describes the request body of the /indexgroup API call
  - `version` integer — Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
  - `datasource` string, required — The datasource for which the group is added
  - `group` DatasourceGroupDefinition, required — describes a group in the datasource
    - `name` string, required — name of the group. Should be unique among all groups for the datasource, and cannot have spaces.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `409` — Conflict

---

[API](https://skmtc.dev/gleanwork/apis/glean-indexing-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-indexing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-indexing-api/revisions/b47bf641faba/schema)
