curl --request POST \
--url http://localhost:3000/api/messaging/servers \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"metadata": {}
}'
{
"success": true,
"data": {
"server": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"metadata": {},
"createdAt": 123
}
}
}
Create a new server
curl --request POST \
--url http://localhost:3000/api/messaging/servers \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"metadata": {}
}'
{
"success": true,
"data": {
"server": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"metadata": {},
"createdAt": 123
}
}
}
Server created successfully
The response is of type object
.
Was this page helpful?