Update role positions. Requires manage_roles permission. Reorders roles to change their hierarchy and permission precedence.
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>"
}
]
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the guild
No Content
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>"
}
]
}