---
title: "Update a Team"
slug: "update-a-team"
updated: 2026-06-01T06:32:04Z
published: 2026-06-01T06:32:04Z
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Team

Post/api/v1/teams.update

Updates an existing team (name and type).

Permission required: `edit-team`

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Body parameters<select class='api-response-data' aria-label='Media type'><option value='a7cda7f0-96aa-4387-9091-cd942a2023ac'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='ccc7804d-bfde-4267-b00f-f8f0f97683ff'>Example</option>
</select>Example

```json
{
  "teamId": "ByehQjC44FwMeiLbX",
  "data": {
    "name": "newTeamName",
    "type": 1
  }
}
```

Expand Allobject  teamIdstring    Required

The team ID.

dataobject  Required

The new team name and type (0 - public, 1 - private).

namestring    
typeinteger    

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='ff0bf83d-3b73-451e-b1e2-7538681120fa'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='10b0a249-fb2f-4a32-ad95-1894b35eb558'>Success</option>
</select>Success

```json
{
  "success": true
}
```

object  successboolean    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='29a1ce6e-3204-4fa3-96c3-bc5e92814aba'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='da934235-2c23-461a-91eb-065b70b858c2'>Authorization Error</option>
</select>Authorization Error

```json
{
  "status": "error",
  "message": "You must be logged in to do this."
}
```

object  statusstring    
messagestring
