<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: REST API - Requirement Test Coverage (Thread)</title><description> I am trying to connect testcases to requirements, using the post API:  https://api.inflectra.com/spira/services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2frequirements%2ftest-steps&amp;method=POST   The call itself is succesfull but  test coverage / requirement coverage in spiraplan remain empty.      Using the association Post API can link them but this is not used in test coverage:  https://api.inflectra.com/spira/services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2fassociations&amp;method=POST   Is there some issue with the API call or perhaps a prerequisite im missing? The API calls are done from c# using HttpClient. </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/spiraplan/issues-questions/2684.aspx</link><item><guid isPermaLink="false">threadId=2684</guid><author>job geerligs (j.geerligs@gendx.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">api</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> requirement coverage</category><title>REST API - Requirement Test Coverage</title><description> I am trying to connect testcases to requirements, using the post API:  https://api.inflectra.com/spira/services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2frequirements%2ftest-steps&amp;method=POST   The call itself is succesfull but  test coverage / requirement coverage in spiraplan remain empty.      Using the association Post API can link them but this is not used in test coverage:  https://api.inflectra.com/spira/services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2fassociations&amp;method=POST   Is there some issue with the API call or perhaps a prerequisite im missing? The API calls are done from c# using HttpClient. </description><pubDate>Thu, 22 Sep 2022 11:20:31 -0400</pubDate><a10:updated>2022-09-27T07:52:12-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2684.aspx</link></item><item><guid isPermaLink="false">messageId=5742</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> I think you are using the wrong endpoint. You are using the Requirement -&gt; Test  Steps  one, not te</title><description> I think you are using the wrong endpoint. You are using the Requirement -&gt; Test  Steps  one, not test cases.  Please use this one:   https://api.inflectra.com/Spira/Services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2frequirements%2ftest-cases&amp;method=POST  </description><pubDate>Fri, 23 Sep 2022 12:15:15 -0400</pubDate><a10:updated>2022-09-23T12:15:15-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5742</link></item><item><guid isPermaLink="false">messageId=5743</guid><author>job geerligs (j.geerligs@gendx.com)</author><title> Ah sorry my mistake, I copied the wrong link I am indeed using  https://api.inflectra.com/Spira/Ser</title><description> Ah sorry my mistake, I copied the wrong link I am indeed using  https://api.inflectra.com/Spira/Services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2frequirements%2ftest-cases&amp;method=POST  </description><pubDate>Fri, 23 Sep 2022 13:00:27 -0400</pubDate><a10:updated>2022-09-23T13:00:27-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5743</link></item><item><guid isPermaLink="false">messageId=5744</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> OK then please log a support ticket with the exact payload you are using:   https://www.inflectra.c</title><description> OK then please log a support ticket with the exact payload you are using:   https://www.inflectra.com/Support/Ticket/List.aspx  </description><pubDate>Sat, 24 Sep 2022 02:38:02 -0400</pubDate><a10:updated>2022-09-24T02:38:02-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5744</link></item><item><guid isPermaLink="false">messageId=5746</guid><author>job geerligs (j.geerligs@gendx.com)</author><title> Thanks for the help, I made a ticket and got the answer.  It seems the postasjsonasync method of th</title><description> Thanks for the help, I made a ticket and got the answer.  It seems the postasjsonasync method of the httpclient in c# sets the content-type to text/html, which caused the issue. After making sure the content-type is set to application/json it works. </description><pubDate>Tue, 27 Sep 2022 07:52:12 -0400</pubDate><a10:updated>2022-09-27T07:52:12-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5746</link></item></channel></rss>