Skip to main content
PATCH
/
guilds
/
{guild_id}
/
vanity-url
Update guild vanity URL
curl --request PATCH \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/vanity-url \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<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
code
string | null

The new vanity URL code (2-32 characters, alphanumeric and hyphens)

Response

Success

code
string
required

The new vanity URL code