Resolve up to 500 identifiers in one request
POST
/v1/test-cases/resolve
const url = 'https://beta-api.plune.ai/v1/test-cases/resolve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"keys":[{"kind":"path-title","value":"e2e/checkout.spec.ts > Checkout — empty cart"},{"value":"3a9f2c1d7b4e6f80"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/test-cases/resolve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "keys": [ { "kind": "path-title", "value": "e2e/checkout.spec.ts > Checkout — empty cart" }, { "value": "3a9f2c1d7b4e6f80" } ] }'What a reporter calls once for a whole run rather than once per test. Answers 200 with a null id for every key that matches nothing — a list of questions, each of which may be answered “no”.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
keys
required
Array<object>
object
kind
string
value
required
string
Example
{ "keys": [ { "kind": "path-title", "value": "e2e/checkout.spec.ts > Checkout — empty cart" }, { "value": "3a9f2c1d7b4e6f80" } ]}Responses
Section titled “ Responses ”One answer per key, in the order they were asked
Media type application/json
object
results
required
Array<object>
object
key
object
testCaseId
string
matchedKind
string
Example
{ "results": [ { "key": { "kind": "path-title", "value": "e2e/checkout.spec.ts > Checkout — empty cart" }, "testCaseId": "6f1c2b3a-0000-4000-8000-0000000000c1", "matchedKind": "path-title" }, { "key": { "value": "3a9f2c1d7b4e6f80" }, "testCaseId": null, "matchedKind": null } ]}Empty batch, more than 500 keys, or a kind that does not exist
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over