Skip to content

One revision with its content

GET
/v1/test-cases/{id}/revisions/{version}
curl --request GET \
--url https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revisions/1 \
--header 'Authorization: Bearer <token>'

The content the case had at that version - also what a result with that caseVersion tested.

id
required
string format: uuid
version
required
integer
>= 1

The revision

Media type application/json
object
version
required
integer
>= 1
createdAt
required
string format: date-time
current
required

This is the content the case has now.

boolean
changes
required

What a revert to this revision would change: the fields that differ from the case now (body is the steps, the expected result, the spec or the prompt). Empty for the current one.

Array<string>
Allowed values: title description precondition examples body
snapshot
required
object
title
required
string
description
required
string
nullable
precondition
required
string
nullable
examples
required

The parameters table (D7).

object
body
required

The type-dependent half: steps and expected of a manual case, specRef of an automated one, prompt and assertions of an eval.

object
Example
{
"changes": [
"title"
]
}

Not a whole number from 1

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

No / invalid token or session

The case or the revision is not there, or not yours

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