Convert Team to Channel

HTTP MethodURLRequires Auth

POST

api/v1/teams.convertToChannel

Body Parameters

KeyExample ValueDescription

teamId*

612b8ae982d286c3d1f5

The team ID that you want to convert to a channel.

Example Call

curl --location --request POST 'http://localhost:3000/api/v1/teams.convertToChannel\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name' \
-d "teamId=612b8ae982d286c3d1f5db31"

Example Response

Success

{
    "success": true
}

Errors

The following error can occur:

  • Authorization: Requires an authentication token for the request to be made.

  • Missing Team ID or Name: Requires a valid Team ID or Name for the request to be made.

  • Invalid Team ID: Requires a valid Team ID for the request to be made.

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

Last updated

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