---
title: "Replace member's groups"
method: PUT
path: "/members/{key}/groups"
tags: ["Members"]
---

# Replace member's groups

`PUT /members/{key}/groups`

Replace completely the list of groups that a member is part of with the ones specified.

## Path parameters

- `key` string, required

## Request body

- object
  - `groups` string — CSV list of group IDs the member will belong to

## Response `200`

The complete updated list of the member's groups

- object
  - `groups` GroupSummary[]
    - `id` integer
    - `title` string
    - `isPublic` boolean
    - `createdOn` string
    - `isDynamic` boolean

## Other responses

- `401` — Unauthorized
- `404` — Member not found

---

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