Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

API: Post error


I’m trying to update a case status via Testrail-API HTTP POST request (Using Fiddler2)


POST /testrail/index.php?/miniapi/add_result/1&key=123456&status_id=5 HTTP/1.1 Accept: application/json Content-Length: 0 Content-Type: application/x-www-form-urlencoded Host: localhost

JSON Result:

error=One of Status ID, Assigned To or Comment is required result=False

Any ideas what I`m doing wrong ?




Thanks for your posting. You need to specify the status ID as post/form argument and cannot include it as a GET parameter. Using Fiddler, you would need to add this to the Request Body text box I believe (status_id=5).

An example for curl would be:

I hope this helps and please let me know in case you need anything else.



I have got it working. Thanks! :slight_smile:


where is an CURL example?
could you please post it?