One revision with its content
GET
/v1/test-cases/{id}/revisions/{version}
const url = 'https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revisions/1';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/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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
version
required
integer
Responses
Section titled “ Responses ”The revision
Media type application/json
object
version
required
integer
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>
snapshot
required
object
title
required
string
description
required
string
precondition
required
string
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"}