Convert Channel to Team

HTTP MethodURLRequires Auth

POST

/api/v1/channels.convertToTeam

Permission required: create-team

Query Parameters

ArgumentExampleDescription

channelName* or channelId*

team01 or b8ae982d286c3d1

The channel's name.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     https://localhost:3000/api/v1/channels.channels.convertToTeam
     -d '{ 
          "channelName": "team-01" }'

Example Response

{
    "team": {
        "_id": "612b8ae982d286c3d1f5db31",
        "name": "team01",
        "type": 0,
        "createdAt": "2021-08-29T13:26:01.750Z",
        "createdBy": {
            "_id": "JxemcN9PDCdfzJeZr",
            "username": "ren.baek"
        },
        "_updatedAt": "2021-08-29T13:26:01.750Z",
        "roomId": "GwktYAajqw4RiWiBK"
    },
    "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.