<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Delete or modify test run via REST API? (Thread)</title><description>    We are busy logging a part of our automated test runs in Spira. To avoid data overflow, we want to configure our pipeline to only record the LAST run test for each feature branch. Since at the time of logging, we dont know if it is the last run, so we should implement the logic to delete or overwrite the existing run for that branch and testcase.  Recording a test run via the REST API works. Now Id like to be able to also delete a recorded test run, or to modify/overwrite an existing run (either would be fine).   According to the REST API docs for automated test run resource:   This resource allows you to retrieve, create,  modify and delete  automated test runs in a specific project in the system.    At first glace, I cannot see a DELETE function. My hope was that    projects/{project_id}/test-runs/record   could be used to also modify an existing test run, since you can pass an existing TestRunId in the request body.  However, even if I pass it it seems to be ignored and it creates a new test run anyway.   How is this supposed to be used?    </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/2391.aspx</link><item><guid isPermaLink="false">threadId=2391</guid><author>D L (dennis.lardenoye@pie.nl)</author><title>Delete or modify test run via REST API?</title><description>    We are busy logging a part of our automated test runs in Spira. To avoid data overflow, we want to configure our pipeline to only record the LAST run test for each feature branch. Since at the time of logging, we dont know if it is the last run, so we should implement the logic to delete or overwrite the existing run for that branch and testcase.  Recording a test run via the REST API works. Now Id like to be able to also delete a recorded test run, or to modify/overwrite an existing run (either would be fine).   According to the REST API docs for automated test run resource:   This resource allows you to retrieve, create,  modify and delete  automated test runs in a specific project in the system.    At first glace, I cannot see a DELETE function. My hope was that    projects/{project_id}/test-runs/record   could be used to also modify an existing test run, since you can pass an existing TestRunId in the request body.  However, even if I pass it it seems to be ignored and it creates a new test run anyway.   How is this supposed to be used?    </description><pubDate>Thu, 17 Jun 2021 08:20:01 -0400</pubDate><a10:updated>2021-06-22T21:42:07-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2391.aspx</link></item><item><guid isPermaLink="false">messageId=3983</guid><author>Brian J (bruno.gruber@inflectra.com)</author><title> Hello,  You can find the information in the  general Test Run session  of the REST API documentatio</title><description> Hello,  You can find the information in the  general Test Run session  of the REST API documentation. More specifically:    Put    Delete    I hope that helps!  Best regards,  Brian J. </description><pubDate>Tue, 22 Jun 2021 13:39:51 -0400</pubDate><a10:updated>2021-06-22T13:39:51-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2391.aspx#reply3983</link></item></channel></rss>