curl --request POST \
--url http://localhost:3000/api/messaging/group-channels \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"participants": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"description": "<string>"
}'
{
"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 group channel with multiple participants
curl --request POST \
--url http://localhost:3000/api/messaging/group-channels \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"participants": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"description": "<string>"
}'
{
"success": true,
"data": {
"channel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "text",
"description": "<string>",
"metadata": {}
}
}
}
Group channel created successfully
The response is of type object
.
Was this page helpful?