{
  "post": {
    "tags": ["Dieline"],
    "summary": "Sheet Calculation",
    "description": "Performs sheet calculation using material, params, drawingId, and sheets.",
    "security": [{ "Dieline-Domain": [] }, { "Dieline-Authentication": [] }, { "Dieline-Session-Token": [] }],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "../../components/schemas/SheetCalculation.json#/sheetCalc"
          },
          "examples": {
            "Sample": {
              "value": {
                "params": [{ "name": "A", "expression": "210" }],
                "material": {
                  "name": "FBB (GC1)",
                  "types": ["Coated White Back (GC1)", "Folding Boxboard (FBB)", "Folding Carton Cardboard"],
                  "grammage": 280,
                  "front": {
                    "id": "Coated White Front/Rear",
                    "params": [{ "id": "Color", "scalarValue": 0, "colorValue": "#FFFFFFFF" }]
                  },
                  "back": {
                    "id": "White Front/Rear",
                    "params": [{ "id": "Color", "scalarValue": 0, "colorValue": "#FFFFFFFF" }]
                  },
                  "cuttingSide": "DCS_FrontCuttingDie",
                  "description": null,
                  "thickness": 0.5
                },
                "drawingId": 15,
                "sheets": [
                  {
                    "mapID": "sheetMapID1",
                    "sheet": {
                      "alignToMargins": false,
                      "alignment": "HCenterBottom",
                      "height": 768.0,
                      "width": 1024.0,
                      "marginB": 0.0,
                      "marginL": 0.0,
                      "marginR": 0.0,
                      "marginT": 0.0,
                      "name": "Test1",
                      "trimX": null,
                      "trimY": null
                    }
                  }
                ]
              }
            }
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "Sheet calculation summary",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "../../components/schemas/SheetCalculation.json#/SheetCalculationResponse"
            }
          }
        }
      }
    }
  }
}
