TCG
Refine generated test cases with a follow-up prompt
Refines an already-completed test case generation in place: the TCG service iterates on the prior context (same contextReferenceKey) using the given prompt, and the report is rebuilt through the existing webhook pipeline (LV-3525).
post/api/v1/tcg/{id}/refine
Request
- Base URLhttps://toolkit.browserstack.com
- AuthAPI key in cookie _wdt_rails_session
Path parameters
idstring required
ID of the completed test case generation to refine
Request body
Example request
{
"user_prompt": "Add negative and edge cases, change login priorities to P0"
}Response
Refinement started successfully
Example response
{
"data": {
"id": "123",
"attributes": {
"status": "processing",
"refining": true
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.