{
  "post": {
    "tags": ["Dieline"],
    "summary": "Resize Dieline",
    "description": "This endpoint allows you to resize a dieline of the ongoing session by providing a set of parameters. The parameters should include the name and expression for each parameter to be resized.",
    "security": [{ "Dieline-Domain": [] }, { "Dieline-Authentication": [] }, { "Dieline-Session-Token": [] }],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "params": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The name of the parameter",
                      "example": "W"
                    },
                    "expression": {
                      "type": "string",
                      "description": "The expression associated with the parameter",
                      "example": "250"
                    }
                  },
                  "required": ["name", "expression"]
                }
              },
              "material": {
                "$ref": "../../components/schemas/MaterialSchema.json#/Material"
              }
            },
            "oneOf": [{ "required": ["params"] }, { "required": ["material"] }]
          }
        }
      }
    },

    "responses": {
      "200": {
        "description": "Dieline resized successfully",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Dieline resized successfully"
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "mainParams": {
                      "$ref": "../../components/schemas/MainParamsSchema.json#/MainParams"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "500": {
        "description": "Internal Server Error - An error occurred while processing the request"
      }
    }
  }
}
