Reference
Fuselage
Convert channel to team
Convert a channel to team
URL
Requires Auth
HTTP Method
/api/v1/channels.convertToTeam
yes
POST

Headers

Argument
Example
Required
Description
X-User-Id
myuser-name
Required
Your username hash (returned after you log in through the API)
X-Auth-Token
myauth-token
Required
Your token (returned after you log in through the API)

Query Parameters

Argument
Example
Required
Description
channelName
documentation-team
Required
The channel's name
OR
channelId
ByehQjC44FwMeiLbX
Required
The channel's id

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/channels.channels.convertToTeam
4
-d '{ "channelName": "documentation-team" }'
Copied!

Example Result

1
{
2
"team": {
3
"_id": "612b8ae982d286c3d1f5db31",
4
"name": "documentation-team",
5
"type": 0,
6
"createdAt": "2021-08-29T13:26:01.750Z",
7
"createdBy": {
8
"_id": "JxemcN9PDCdfzJeZr",
9
"username": "renato.becker"
10
},
11
"_updatedAt": "2021-08-29T13:26:01.750Z",
12
"roomId": "GwktYAajqw4RiWiBK"
13
},
14
"success": true
15
}
Copied!
Last modified 3mo ago
Export as PDF
Copy link
Edit on GitHub