ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              { message: string; materialType: any; cuttingCalculation: null },
          >
          | NextResponse<
              {
                  rawMaterial: {
                      id: any;
                      name: any;
                      materialType: any;
                      width: any;
                      height: any;
                      length: any;
                  };
                  finishedProduct: {
                      id: any;
                      name: any;
                      width: any;
                      height: any;
                      length: any;
                  };
                  quantityNeeded: any;
                  cuttingCalculation: CuttingCalculation;
                  efficiency: { materialUtilization: number; wastePercentage: number };
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              { message: string; materialType: any; cuttingCalculation: null },
          >
          | NextResponse<
              {
                  rawMaterial: {
                      id: any;
                      name: any;
                      materialType: any;
                      width: any;
                      height: any;
                      length: any;
                  };
                  finishedProduct: {
                      id: any;
                      name: any;
                      width: any;
                      height: any;
                      length: any;
                  };
                  quantityNeeded: any;
                  cuttingCalculation: CuttingCalculation;
                  efficiency: { materialUtilization: number; wastePercentage: number };
              },
          >,
      >