I am afraid but this approach also does not help . Its ends up adding no steps in the final results and add 2 runs for the same testcase .
So , to summarise I am using the endpoint /testrun/{testRunKey}/testresults and want to have each entry under the "scriptResults" section shown in final results but only index 0 is updated . This means that I can only upload result of one test step to the final status. The JSON body in the original query as per the API documentation (https://support.smartbear.com/zephyr-scale-server/api-docs/v1/) .
This seems to be defect according to me as I am not able to upload the complete results to Zephyr unless I am doing something wrong here .