Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > What are the REST API end...
(I did look here: https://api.inflectra.com/Spira/Services/v4_0/RestService.aspx)
We would like to programmatically add test cases to a specific folder in a project. To do this requires several steps:
* identify the project ID (done; list all projects)
* find the folder ID by name (not done. This might be one of...
* list all folders in the project, and search by name to find the ID (not implemented?)
* search folder by name and get the ID (not implemented?)
* add the test case: projects/{project_id}/test-cases?parent_test_folder_id={parent_test_folder_id}
How the hot fudge do we find out that test folder ID?
Thanks, your product is really great, we love it
Hi Scott,
I would actually recommend using the newer v5.0 API if you are running Spira v5.0 or later:
https://api.inflectra.com/Spira/Services/v5_0/RestService.aspx
(it has more endpoints and natively uses the new folder system, vs. mapping it to what v4.0 used to have)
You can get all the folders (names, IDs, etc.) with:
https://api.inflectra.com/Spira/Services/v5_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2ftest-folders&method=GET
For more specific answers, also feel free to log a help desk ticket.
Regards
Jim
Just following up, for others: Jim's answer helped a lot, use the 5.0 API as shown
And if you have any questions, please email or call us at +1 (202) 558-6885