Skip to main content
PATCH
/
v1
/
servers
/
{serverId}
/
channels
/
positions
Reorder channels
curl --request PATCH \
  --url https://api.magne.app/v1/servers/{serverId}/channels/positions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channels": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "position": 123,
      "categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}
'
{
  "error": "<string>"
}

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
channels
object[]

Response

Success