PATCH /users/@me

Changed on

Request

  • Base URL
    https://discord.com/api/v10
  • Auth
    API key in header Authorization

Request body

usernamestring required
avatarstring byte nullable
bannerstring byte nullable

Response

200 response for update_my_user

idstring snowflake required
usernamestring required

the user's username, not unique across the platform

avatarstring nullable required

the user's avatar hash

discriminatorstring required

the user's Discord-tag

public_flagsinteger required

the public flags on a user's account

flagsinteger required
botboolean

whether the user belongs to an OAuth2 application

systemboolean

whether the user is an Official Discord System user (part of the urgent message system)

bannerstring nullable

the user's banner hash

accent_colorinteger nullable

the user's banner color encoded as an integer representation of hexadecimal color code

global_namestring nullable required

the user's display name, if it is set

mfa_enabledboolean required
emailstring nullable
verifiedboolean

Changes

    • breaking

      added subschema #1: CRIMSON subschema #2: BERRY subschema #3: SKY subschema #4: TEAL subschema #5: FOREST subschema #6: BUBBLE_GUM subschema #7: VIOLET subschema #8: COBALT subschema #9: CLOVER subschema #10: LEMON subschema #11: WHITE subschema #12: BLACK to the ////////// response property oneOf list for the response status

    • info

      the response property became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ////////// became required for the status

    • info

      the response property became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status