curl --request POST \
--url http://localhost:3000/api/messaging/central-channels \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"type": "text"
}
'{
"success": true,
"data": {
"channel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "text",
"description": "<string>",
"metadata": {}
}
}
}Create a channel in the central database
curl --request POST \
--url http://localhost:3000/api/messaging/central-channels \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"type": "text"
}
'{
"success": true,
"data": {
"channel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "text",
"description": "<string>",
"metadata": {}
}
}
}Central channel created successfully
Show child attributes
Show child attributes
Unique identifier for the channel
Name of the channel
ID of the server this channel belongs to
Type of channel
text, voice, dm, group Channel description
Additional channel metadata
Was this page helpful?