{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-bulk-accounting-class-proposal-action-input-schema.json",
  "title": "BulkAccountingClassProposalActionInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-accounting-classes-api-openapi.yml#/components/schemas/BulkAccountingClassProposalActionInput",
  "oneOf": [
    {
      "type": "object",
      "required": [
        "action",
        "proposalIds"
      ],
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "approve"
          ]
        },
        "proposalIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 200,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "apply": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    {
      "type": "object",
      "required": [
        "action",
        "proposalIds",
        "classId"
      ],
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "change"
          ]
        },
        "proposalIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 200,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "classId": {
          "type": "string",
          "format": "uuid"
        },
        "apply": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    {
      "type": "object",
      "required": [
        "action",
        "proposalIds"
      ],
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "reject"
          ]
        },
        "proposalIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 200,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "reason": {
          "type": "string",
          "maxLength": 500
        }
      },
      "additionalProperties": false
    }
  ]
}