---
title: "Update a group"
method: PUT
path: "/api/group"
tags: ["group"]
---

# Update a group

`PUT /api/group`

This function is an API endpoint that allows an authenticated admin to update a group.<br> Todo allow to use different team

## Parameters

- `guid`: The request data, which includes the details of the group to be updated.  <br>

## Returns

If successful, this function returns a `Json<UsersResponse>` object, which includes a success message, the total number of groups, and the list of groups.  <br>

## Request body

- UpdateGoupRequest
  - `guid` string, required
  - `name` string, required
  - `note` string, required
  - `allowed_outgoings` string[], required
  - `allowed_incomings` string[], required

## Response `200`

- UsersResponse
  - `msg` string, required
  - `total` integer, required
  - `data` string, required

## Other responses

- `401`

## Changes

- **2024-06-12** `a4a2ca9fb3af` — 1 info
  - endpoint added
- **2024-05-19** `fafd43b82c78` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/changes/api/group/put.md)

---

[API](https://skmtc.dev/nesaku/apis/sctgdesk-api-server.md) · [All operations](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/sctgdesk-api-server/revisions/0388fec8a751/schema)
