---
title: "Add groups for user with specific IDs"
method: PUT
path: "/api/2.0/users/{objectId}/groups"
tags: ["User Management API"]
---

# Add groups for user with specific IDs

`PUT /api/2.0/users/{objectId}/groups`

## Path parameters

- `objectId` integer, required

## Request body

- integer[]

## Response `200`

Success

- ApiMessage — Response status
  - `message` string — Message
  - `documentation` string — Link to documentation

## Other responses

- `400` — Bad request
- `401` — User is not authenticated
- `403` — User is not allowed to access this resource
- `500` — Error during processing

---

[API](https://skmtc.net/knowi/apis/user-management-api.md) · [All operations](https://skmtc.net/knowi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knowi/user-management-api/revisions/6e6982573ba6/schema)
