{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-mdr-delete-usage-report-response-schema.json",
  "title": "MdrDeleteUsageReportResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-mdr-usage-reports-api-openapi.yml#/components/schemas/MdrDeleteUsageReportResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/MdrUsageReportResponseLegacy"
    }
  },
  "type": "object",
  "$defs": {
    "MdrUsageReportResponseLegacy": {
      "description": "Legacy V2 MDR usage report response",
      "properties": {
        "aggregation_type": {
          "description": "Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2",
          "format": "int32",
          "type": "integer"
        },
        "connections": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "end_time": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "Identifies the resource",
          "format": "uuid",
          "type": "string"
        },
        "profiles": {
          "description": "List of messaging profile IDs",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "record_type": {
          "type": "string"
        },
        "report_url": {
          "type": "string"
        },
        "result": {
          "type": "object"
        },
        "start_time": {
          "format": "date-time",
          "type": "string"
        },
        "status": {
          "description": "Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)",
          "format": "int32",
          "type": "integer"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}