{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-friend-update-request-schema.json",
  "title": "FriendUpdateRequest",
  "description": "Body for PUT /friends.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-friends-api-openapi.yml#/components/schemas/FriendUpdateRequest",
  "type": "object",
  "required": [
    "updateType"
  ],
  "properties": {
    "profileName": {
      "type": "string",
      "description": "Friend's username (mutually exclusive with profileId)."
    },
    "profileId": {
      "type": "string",
      "description": "Friend's UUID (mutually exclusive with profileName)."
    },
    "updateType": {
      "type": "string",
      "enum": [
        "ADD",
        "REMOVE"
      ]
    }
  }
}