A question answer
const url = 'https://beta-api.plune.ai/v1/questions/example/answer';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/questions/example/answer \ --header 'Authorization: Bearer <token>'«n of N» with at most 20 rows and the link to the cases under the same filter (AC-03, AC-04). A question a health widget answers is that card own answer. Read inside 5 s, a widget block cut: past it n and N are null and notMeasured says block_timeout. Reads only.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The answer
object
N = 0 is «no data»; n = 0 with N > 0 the good state; both null when the question ran out of its 5 s (block_timeout).
object
The first rows: a case id and title, or the health card own rows.
object
A path in the project: the case list under the same filter inside its base (the set counted), the health card, or the run whose cost it is; null when no case matched (no card leads to an empty list), with no finished run, or for a cost not measured in time.
object
object
The cost of the last finished run: runId, runNumber (its place among the project runs by start, 1 the first, runs in the Bin counted), title, startedAt, results (how many results it holds), usd, unknownTokens.
object
Example
{ "questionId": "6f1c2b3a-0000-4000-8000-000000001292", "denominator": { "n": 1, "N": 4, "unit": "cases" }, "items": [ { "caseId": "6f1c2b3a-0000-4000-8000-0000000000c1", "title": "Checkout with an empty cart" } ], "truncated": false, "href": "/cases?tag=smoke&state=draft", "notMeasured": []}No / invalid token or session
No such question in the project
object
Example generated
{ "error": "example"}The stored filter no longer matches the case filter
object
Example generated
{ "error": "example"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over