Skip to main content
PATCH
/
guilds
/
{guild_id}
/
roles
Update role positions
curl --request PATCH \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/roles \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "<string>",
    "position": 123
  }
]
'
{
  "code": "ACCESS_DENIED",
  "message": "<string>",
  "errors": [
    {
      "path": "<string>",
      "message": "<string>",
      "code": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

guild_id
string<snowflake>
required

The ID of the guild

Body

application/json
id
string<snowflake>
required
position
integer<int53>

The new position for the role

Response

No Content