---
title: "Update group"
method: PUT
path: "/workspaces/{workspace_id}/groups/{group_id}"
tags: ["groups"]
---

# Update group

`PUT /workspaces/{workspace_id}/groups/{group_id}`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/groups/{group_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/groups/:group_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the group.

## Path parameters

- `workspace_id` integer, required
- `group_id` integer, required

## Request body

- GroupNamePayload
  - `name` string

## Response `200`

Returns the created updated data.

- ModelsGroup
  - `at` string
  - `id` integer
  - `name` string
  - `permissions` string
  - `workspace_id` integer

## Other responses

- `400`: Possible error messages: * Group name must be present * Group name too long, maximum length is 200 * Name has already been taken
- `403`: User does not have access to this resource
- `404`: Group was not found

---

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