Skip to content

A case as this run shows it

GET
/v1/runs/{id}/cases/{caseId}/content
curl --request GET \
--url https://beta-api.plune.ai/v1/runs/example/cases/example/content \
--header 'Authorization: Bearer <token>'

Plune #1267. While the run holds no result of the case, the case as it is now (frozen: false). From the first result on, the content the case had at the caseVersion of that result (frozen: true): a later edit or revert of the case, its move to the Bin and its restore leave it as it was, and currentVersion above version says the case has moved on. A case in the Bin shows the same way. snapshot is null only when the version tested was never kept (a result from before revisions, of a case edited since). 404: not your run, or it does not hold the case.

id
required
string
caseId
required
string

The case in the run

Media type application/json
object
testCaseId
required
string
frozen
required
boolean
version
required
integer
>= 1
currentVersion
required
integer
>= 1
inBin
required
boolean
snapshot
required

Title, description, precondition, examples and body, as in a revision.

object
Example generated
{
"testCaseId": "example",
"frozen": true,
"version": 1,
"currentVersion": 1,
"inBin": true,
"snapshot": {}
}

No / invalid token or session

Not found or not yours

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}