{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-clone-budget-request-schema.json",
  "title": "CloneBudgetRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-budgets-api-openapi.yml#/components/schemas/CloneBudgetRequest",
  "required": [
    "alertMode",
    "budgetIds"
  ],
  "type": "object",
  "properties": {
    "budgetIds": {
      "type": "array",
      "description": "List of budget IDs to perform action on.",
      "items": {
        "type": "string",
        "description": "List of budget IDs to perform action on."
      }
    },
    "suffix": {
      "type": "string",
      "description": "Suffix for the cloned budgets."
    },
    "alertMode": {
      "type": "string",
      "description": "How to handle budget alerts when cloning.",
      "enum": [
        "COPY_THRESHOLDS_OLD_RECIPIENTS",
        "COPY_THRESHOLDS_NEW_RECIPIENTS",
        "DO_NOT_COPY_ALERTS"
      ]
    },
    "slackRecipients": {
      "type": "array",
      "description": "List of new slack recipients to use if COPY_THRESHOLDS_NEW_RECIPIENTS",
      "items": {
        "type": "string",
        "description": "List of new slack recipients to use if COPY_THRESHOLDS_NEW_RECIPIENTS"
      }
    },
    "emailRecipients": {
      "type": "array",
      "description": "List of new email recipients to use if COPY_THRESHOLDS_NEW_RECIPIENTS",
      "items": {
        "type": "string",
        "description": "List of new email recipients to use if COPY_THRESHOLDS_NEW_RECIPIENTS"
      }
    }
  }
}