Reference
Fuselage
Channel Set Join Code
Sets the code required to join the channel.
URL
Requires Auth
HTTP Method
/api/v1/channels.setJoinCode
yes
POST

Payload

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The channel's id
joinCode
my-join-code
Required
The join code which this channel will require to be joined.

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
-H "Content-type: application/json" \
4
http://localhost:3000/api/v1/channels.setJoinCode \
5
-d '{ "roomId": "ByehQjC44FwMeiLbX", "joinCode": "my-join-code" }'
Copied!

Example Result

1
{
2
"channel": {
3
"_id": "ByehQjC44FwMeiLbX",
4
"name": "testing0",
5
"t": "c",
6
"msgs": 0,
7
"u": {
8
"_id": "aiPqNoGkjpNDiRx6d",
9
"username": "goose160"
10
},
11
"ts": "2017-01-05T18:02:50.754Z",
12
"ro": false,
13
"sysMes": true,
14
"_updatedAt": "2017-01-05T18:41:48.840Z",
15
"usernames": [
16
"goose160",
17
"graywolf336"
18
],
19
"joinCodeRequired": true
20
},
21
"success": true
22
}
Copied!

Change Log

Version
Description
0.49.0
Added
Last modified 8mo ago
Export as PDF
Copy link
Edit on GitHub