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

Pass the User ID dynamically to the TestRail API


#1

Hi,

We have Configured the TestRail API by setting the values for GI_MINIAPI_USER_ID, GI_MINIAPI_API_KEY in testrail\app\controllers\miniapi.php file.

API is running always same user id what we have given in miniapi.php file, so instead of giving the User ID in miniapi.php file, can we pass the User ID dynamically from where we are making the TestRail API calls??


#2

Hello,

Thanks for the posting. Currently all API requests are done under the same user account. You could for example create a separate “api” user just for this. We do plan to enhance the API so users can authenticate directly against the API so you wouldn’t need to link the API to a specific user and we would like to offer this in a future update.

Regards,
Dennis