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

Query on get_results_for_run API

Hi Team,

Im trying to hit the below api:
https://cltp.testrail.net/index.php?/api/v2/get_results_for_run/:472
Headers:
Authorization:Basic auth_token
Content-Type:application/json

But i get response 404:
{
“error”: “Field :run is not a valid ID.”
}

Thanks,
Harshitha M

Hi Team,

Im blocked with this. Can you please help me with this.

Test Trail version used is TestRail v6.0.0.4140

Thanks,
Harshitha M

Hey Harshitha,

Thanks for the post and providing the example. When running it, are you including the : character in the request? That is unnecessary, and likely what’s causing the issue. Try again without the : like so:

https://cltp.testrail.net/index.php?/api/v2/get_results_for_run/472

Hope that helps! Let us know if you have any other questions.