{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-billing-and-cost-management/json-schema/amazon-billing-and-cost-management-batch-update-bill-scenario-usage-modification-request-schema.json",
  "title": "BatchUpdateBillScenarioUsageModificationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-bill-scenario-usage-modification-api-openapi.yml#/components/schemas/BatchUpdateBillScenarioUsageModificationRequest",
  "type": "object",
  "properties": {
    "billScenarioId": {
      "type": "string",
      "description": "The ID of the Bill Scenario for which you want to modify the usage lines."
    },
    "usageModifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchUpdateBillScenarioUsageModificationEntry"
      },
      "description": "List of usage lines that you want to update in a Bill Scenario identified by the usage ID."
    }
  },
  "required": [
    "billScenarioId",
    "usageModifications"
  ],
  "$defs": {
    "BatchUpdateBillScenarioUsageModificationEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the usage modification to update."
        },
        "group": {
          "type": "string",
          "description": "The updated group identifier for the usage modification."
        },
        "amounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UsageAmount"
          },
          "description": "The updated usage amounts for the modification."
        }
      },
      "required": [
        "id"
      ]
    },
    "UsageAmount": {
      "type": "object",
      "properties": {
        "startHour": {
          "type": "string",
          "description": "The start hour of the usage period."
        },
        "amount": {
          "type": "number",
          "description": "The usage amount for the period."
        }
      },
      "required": [
        "startHour",
        "amount"
      ]
    }
  }
}