{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-player-attributes-update-schema.json",
  "title": "PlayerAttributesUpdate",
  "description": "Patch payload for updating player attributes.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-attributes-api-openapi.yml#/components/schemas/PlayerAttributesUpdate",
  "type": "object",
  "properties": {
    "profanityFilterPreferences": {
      "$ref": "#/$defs/ProfanityFilterPreferences"
    },
    "friendsPreferences": {
      "$ref": "#/$defs/FriendsPreferences"
    }
  },
  "$defs": {
    "FriendsPreferences": {
      "type": "object",
      "description": "Friends-graph privacy settings.",
      "properties": {
        "allowFriendRequests": {
          "type": "boolean",
          "description": "Whether other players may send friend requests."
        }
      }
    },
    "ProfanityFilterPreferences": {
      "type": "object",
      "description": "Profanity filter settings.",
      "properties": {
        "profanityFilterOn": {
          "type": "boolean",
          "description": "Master toggle for the profanity filter on inbound chat."
        }
      }
    }
  }
}