---
title: "Update Group"
method: PATCH
path: "/rbac/groups/{group_id}"
tags: ["rbac"]
---

# Update Group

`PATCH /rbac/groups/{group_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/rbac/groups/{group_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Update a group.

Requires: org:rbac:update scope

## Path parameters

- `group_id` string, uuid, required

## Request body

- GroupUpdate: Update schema for a group.
  - `name` string, nullable: Group name
  - `description` string, nullable: Optional description of the group

## Response `200`

Successful Response

- GroupReadWithMembers: Read schema for a group with its members.
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `organization_id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, uuid, nullable
  - `members` GroupMemberRead[]
    - `user_id` string, uuid, required
    - `email` string, required
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `added_at` string, date-time, nullable, required
  - `member_count` integer
  - `is_idp_managed` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
