Skip to main content
PATCH
/
guilds
/
{guild_id}
/
roles
/
hoist-positions
Update role hoist positions
curl --request PATCH \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/roles/hoist-positions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "<string>",
    "hoist_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
hoist_position
integer<int53>
required

The new hoist position for the role

Response

No Content