How do I push test cases to a folder via API?
To push test cases to a specific folder via API, follow these methods depending on your situation:
-
For existing tests: It is not possible to move individual test cases directly into a folder. Instead, move the entire suite into the folder by changing the
parent_idto the folder’s ID. Refer to the API documentation for updating suites: https://app.testomat.io/docs/public-api#tag/suites/PUT/api/v2/{project_id}/suites/{id} -
For Markdown imports: You can specify the
folder_idduring the import process to place the test cases directly into a folder. Refer to the API documentation for Markdown import: https://app.testomat.io/docs/public-api#tag/suites/POST/api/v2/{project_id}/suites/markdown_import
Related documentation
Section titled “Related documentation”- https://app.testomat.io/docs/public-api#tag/suites/PUT/api/v2/{project_id}/suites/{id}
- https://app.testomat.io/docs/public-api#tag/suites/POST/api/v2/{project_id}/suites/markdown_import