HTTP Method | URL | Requires Auth |
---|
POST | /api/v1/channels.convertToTeam | yes |
{% hint style="info" %}
Permission required: create-team
{% endhint %}
Argument | Example | Description |
---|
channelName * or channelId * | team01 or b8ae982d286c3d1 | The channel's name. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
https://localhost:3000/api/v1/channels.channels.convertToTeam
-d '{
"channelName": "team-01" }'
{
"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
}