Inflectra Customer Forums: REST API - Requirement Test Coverage (Thread) 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&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&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. en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spiraplan/issues-questions/2684.aspxthreadId=2684job geerligs (j.geerligs@gendx.com)API Requirement coverageREST API - Requirement Test Coverage 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&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&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. Thu, 22 Sep 2022 11:20:31 -04002022-09-27T07:52:12-04:00/Support/Forum/spiraplan/issues-questions/2684.aspxmessageId=5742David J (support1@inflectra.com) I think you are using the wrong endpoint. You are using the Requirement -> Test Steps one, not te I think you are using the wrong endpoint. You are using the Requirement -> 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&method=POST Fri, 23 Sep 2022 12:15:15 -04002022-09-23T12:15:15-04:00/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5742messageId=5743job geerligs (j.geerligs@gendx.com) Ah sorry my mistake, I copied the wrong link I am indeed using https://api.inflectra.com/Spira/Ser 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&method=POST Fri, 23 Sep 2022 13:00:27 -04002022-09-23T13:00:27-04:00/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5743messageId=5744David J (support1@inflectra.com) OK then please log a support ticket with the exact payload you are using: https://www.inflectra.c OK then please log a support ticket with the exact payload you are using: https://www.inflectra.com/Support/Ticket/List.aspx Sat, 24 Sep 2022 02:38:02 -04002022-09-24T02:38:02-04:00/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5744messageId=5746job geerligs (j.geerligs@gendx.com) Thanks for the help, I made a ticket and got the answer. It seems the postasjsonasync method of th 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. Tue, 27 Sep 2022 07:52:12 -04002022-09-27T07:52:12-04:00/Support/Forum/spiraplan/issues-questions/2684.aspx#reply5746