{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-refresh-list-schema.json",
  "title": "RefreshList",
  "description": "A list of dataset refresh entries",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-datasets-api-openapi.yml#/components/schemas/RefreshList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Refresh"
      }
    },
    "@odata.context": {
      "type": "string"
    }
  },
  "$defs": {
    "Refresh": {
      "type": "object",
      "description": "A dataset refresh operation entry",
      "properties": {
        "requestId": {
          "type": "string",
          "description": "The unique identifier of the refresh request"
        },
        "id": {
          "type": "integer",
          "description": "The sequential identifier of the refresh"
        },
        "refreshType": {
          "type": "string",
          "description": "The type of refresh",
          "enum": [
            "Scheduled",
            "OnDemand",
            "ViaApi",
            "ViaEnhancedApi"
          ]
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the refresh"
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the refresh"
        },
        "status": {
          "type": "string",
          "description": "The status of the refresh",
          "enum": [
            "Unknown",
            "Completed",
            "Failed",
            "Cancelled",
            "Disabled"
          ]
        },
        "serviceExceptionJson": {
          "type": "string",
          "description": "JSON-formatted error details if the refresh failed"
        }
      }
    }
  }
}