Skip to main content
POST
/
v1
/
servers
/
{serverId}
/
categories
Create a category
curl --request POST \
  --url https://api.magne.app/v1/servers/{serverId}/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "position": 123,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

serverId
string<uuid>
required

Body

application/json
name
string
required

Response

Success

id
string<uuid>
serverId
string<uuid>
name
string
position
integer<int32>
createdAt
string<date-time>