---
title: "Convert a Group to Team"
slug: "convert-a-group-to-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.

# Convert a Group to Team

Post/api/v1/groups.convertToTeam

Convert a private channel to a team. Permissions required: `create-team`, `edit-room`

### Changelog

| Version | Description |
| --- | --- |
| 3.13.0 | Added |

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='c1f6ecc6-ed18-4530-9a15-e677d40eb9a1'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='2d2d6a66-7191-4f39-817a-99ba3f33f7d8'>Example 1</option>
</select>Example 1

```json
{
  "roomId": "JZ8Y2dLfYhsg323Rf"
}
```

object  roomIdstring    Required

Enter the private channel that you want to convert to a private team.

ExampleJZ8Y2dLfYhsg323Rf

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='5dfce502-8525-4b70-ba18-7083d249c472'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='af11f105-0a9a-4179-b946-3894c4cad2a7'>Success</option>
</select>Success

```json
{
  "team": {
    "_id": "6172b15bc563fc000acc462e",
    "name": "ddd",
    "type": 1,
    "createdAt": "2021-10-22T12:40:59.928Z",
    "createdBy": {
      "_id": "d26x6zSkaPSe5gCyy",
      "username": "rod"
    },
    "_updatedAt": "2021-10-22T12:40:59.928Z",
    "roomId": "h3HLZkQdrWCPg2RN7"
  },
  "success": true
}
```

Expand Allobject  teamobject  _idstring    
namestring    
typeinteger    
createdAtstring    
createdByobject  _idstring    
usernamestring    

_updatedAtstring    
roomIdstring    

successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='936e0a76-f63d-461a-8fc7-f60f248edbe8'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='1ca9a27c-8c96-4e3b-8f31-5bcf2e9098b1'>Team name exists</option>
<option value='54b4f0a9-2373-4fc7-8599-f6ebfab2c8a8'>Room name is required</option>
<option value='2c515fb0-49e0-42d3-bf24-e855c03a3dfc'>Room not found</option>
</select>Team name exists

```json
{
  "success": false,
  "error": "team-name-already-exists"
}
```

Room name is required

```json
{
  "success": false,
  "error": "The parameter \"roomId\" or \"roomName\" is required"
}
```

Room not found

```json
{
  "success": false,
  "error": "The required \"roomId\" or \"roomName\" param provided does not match any group [error-room-not-found]",
  "errorType": "error-room-not-found"
}
```

object  successboolean    
errorstring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='c18ba85a-e596-42f5-83f6-dc6f25a348b7'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='e003a4a4-27d7-4291-9dd5-08f6f1d1e1e8'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
