---
title: "Update a group (team)"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a group (team)

Path: CloudRaker Workspace API › Authorization

`PATCH /authorization/groups/{groupId}`

Updates the group named by the `groupId` path parameter. Authorization: organization administrators only — other callers get 403. Body: optional `name` (1–255 chars) and/or `description` (both optional; send only the fields to change). Returns the updated group.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `groupId` (`updateGroup.path.groupId`; string, required)

## Request body

_Required._

- `name` (`updateGroup.name`; string, optional)
  - minLength 1; maxLength 255
- `description` (`updateGroup.description`; string | null, optional)

## Example request

```json
{
  "name": "string",
  "description": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.cloudraker.com/authorization/groups/<groupId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "string",
  "description": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/groups/<groupId>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({name: 'string', description: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/authorization/groups/<groupId>"

payload = {
    "name": "string",
    "description": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The group was updated.

#### Example

```json
{
  "id": "string",
  "organizationId": "string",
  "name": "Legal",
  "description": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
```

- `id` (`updateGroup.response.200.id`; string, required)
- `organizationId` (`updateGroup.response.200.organizationId`; string, required)
- `name` (`updateGroup.response.200.name`; string, required)
  - example `"Legal"`
- `description` (`updateGroup.response.200.description`; string | null, required)
- `createdAt` (`updateGroup.response.200.createdAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `updatedAt` (`updateGroup.response.200.updatedAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`updateGroup.response.400.success`; boolean, required)
  - one of `false`
- `error` (`updateGroup.response.400.error`; array<unknown>, required)
- `data` (`updateGroup.response.400.data`; unknown, required)

### 403

Caller is not an org admin


Source: https://docs.cloudraker.com/workspace/api/authorization/update-group/index.md
