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":"example","value":"example"}]}'};
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": "example", "value": "example" } ] }'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 generated
{ "keys": [ { "kind": "example", "value": "example" } ]}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 generated
{ "results": [ { "key": {}, "testCaseId": "example", "matchedKind": "example" } ]}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