{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/main/json-schema/acronis-software-unit-schema.json",
  "title": "SoftwareUnit",
  "description": "Unit name. This must be specified in Agent Manager configuration and there must be corresponding client role in Backup Account Server configuration.",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/acronis-agents-v2-openapi.json#/components/schemas/SoftwareUnit",
  "type": "object",
  "required": [
    "name",
    "version"
  ],
  "properties": {
    "name": {
      "description": "Unit name.",
      "type": "string"
    },
    "version": {
      "description": "Unit version.",
      "type": "object",
      "required": [
        "current"
      ],
      "properties": {
        "current": {
          "description": "The currently installed version.",
          "type": "object",
          "required": [
            "build",
            "release_id"
          ],
          "properties": {
            "build": {
              "description": "Build number.",
              "type": "string"
            },
            "release_id": {
              "description": "Release identifier.",
              "type": "string"
            },
            "release_name": {
              "description": "Human-readable release name.",
              "type": "string"
            }
          }
        },
        "latest": {
          "description": "The latest available version. It is only present if the latest version is newer than the current one.",
          "type": "object",
          "required": [
            "build",
            "release_id"
          ],
          "properties": {
            "build": {
              "description": "Build number.",
              "type": "string"
            },
            "release_id": {
              "description": "Release identifier.",
              "type": "string"
            },
            "release_name": {
              "description": "Human-readable release name.",
              "type": "string"
            }
          }
        }
      }
    }
  }
}