{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-information-protection-change-label-response-schema.json",
  "title": "InformationProtectionChangeLabelResponse",
  "description": "A composite of the ID and information protection label change status for one or more Power BI items organized by type",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-admin-api-openapi.yml#/components/schemas/InformationProtectionChangeLabelResponse",
  "properties": {
    "dashboards": {
      "type": "array",
      "description": "A list containing the unique ID and information protection label change status of one or more dashboards",
      "items": {
        "$ref": "#/$defs/ChangeLabelStatus"
      }
    },
    "reports": {
      "type": "array",
      "description": "A list containing the unique ID and information protection label change status of one or more reports",
      "items": {
        "$ref": "#/$defs/ChangeLabelStatus"
      }
    },
    "dataflows": {
      "type": "array",
      "description": "A list containing the unique ID and information protection label change status of one or more dataflows",
      "items": {
        "$ref": "#/$defs/ChangeLabelStatus"
      }
    },
    "datasets": {
      "type": "array",
      "description": "A list containing the unique ID and information protection label change status of one or more datasets",
      "items": {
        "$ref": "#/$defs/ChangeLabelStatus"
      }
    }
  },
  "$defs": {
    "ChangeLabelStatus": {
      "description": "The unique ID and information protection label change status of a Power BI item",
      "required": [
        "id",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID of a Power BI item. The ID is in UUID format for dashboards, reports, and dataflows; and in UUID or string format for datasets."
        },
        "status": {
          "type": "string",
          "description": "The status of an information protection label change operation",
          "enum": [
            "Failed",
            "FailedToGetUsageRights",
            "InsufficientUsageRights",
            "NotFound",
            "Succeeded"
          ],
          "x-ms-enum": {
            "name": "status",
            "modelAsExtensible": true,
            "values": [
              {
                "value": "Failed",
                "description": "Failed to set a new label. Please retry."
              },
              {
                "value": "FailedToGetUsageRights",
                "description": "Failed to set a new label. The Power BI item has a sensitivity label with protection settings, and Power BI was unable to verify that the user has sufficient usage rights to change the label."
              },
              {
                "value": "InsufficientUsageRights",
                "description": "Failed to set a new label. The Power BI item has a sensitivity label with protection settings, and the admin user (and the delegated user, if provided) doesn't have sufficient usage rights to change the label."
              },
              {
                "value": "NotFound",
                "description": "The Power BI item ID or label wasn't found"
              },
              {
                "value": "Succeeded",
                "description": "The Power BI item label was changed"
              }
            ]
          }
        }
      }
    }
  }
}