---
title: "Assign user (or pending user) to a group"
method: POST
path: "/api/admin/groups/assign-user"
tags: ["Admin"]
---

# Assign user (or pending user) to a group

`POST /api/admin/groups/assign-user`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/groups/assign-user`
- Auth: HTTP bearer

## Request body

- AssignUserDto
  - `groupId` number, required
  - `userId` string, required: User ID or "pending_<accessCodeId>"

## Response `200`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
