cURL
curl --request POST \ --url http://localhost:8091/api/servers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "data": { "id": "<string>", "name": "<string>", "createdBy": "<string>", "createdAt": "2023-11-07T05:31:56Z", "iconPath": "<string>", "role": "<string>", "memberCount": 123 } }
Creates a new server with a default #general channel. The creating user becomes the owner.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Server name (1-64 characters)
1 - 64
Server created
Show child attributes