Copy a case beside the original
const url = 'https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/duplicate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"suiteId":"6f1c2b3a-0000-4000-8000-0000000000a1","position":0}'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/duplicate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "suiteId": "6f1c2b3a-0000-4000-8000-0000000000a1", "position": 0 }'A new case with the same texts, priority and suite, titled «Copy of …» (its @tags come along), as a draft, right under its original (D30, D31). External keys and evalId stay with the original — they are what makes a case itself — and an automated case has no copy: its identity is the spec, so the test is duplicated in code. The body is optional and says where the copy goes instead — the dashboard sends it when a selection is dropped with Alt held.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body
Section titled “Request Body ”Where the copy goes (D31). Optional, and so is each field: without a body the copy sits right under its original; a suiteId alone puts it last there; position is the slot among that suite’s cases, past the end meaning last.
object
A suite, never a folder — the same rule as filing a case; null puts the copy outside any suite.
Examples
The copy first in another suite
{ "suiteId": "6f1c2b3a-0000-4000-8000-0000000000a1", "position": 0}Responses
Section titled “ Responses ”The copy
A stored test case — the metadata plus the body of its type.
object
Accepted: 1 or 2. Responses are always 2 — a v1 record is upgraded on read.
Carries its @tag tail — the one source of tags (ADR 0032). The dashboard shows the clean title and the tags as chips.
The case’s place in its lifecycle. in_review is a case a proposal produced and nobody has confirmed yet; detached is one whose source stopped being reported. Who may move it where depends on whether the caller is a session or a token.
Derived from state for clients on v1, never stored. in_review answers as draft and detached as active — v1 has no word for either.
Why the case last moved.
Only when reading ONE case (#1064): its defect links, oldest first, at most 20; [] for a case without any. The list carries a count per case instead (defectCounts).
A defect (#1064): the address of a ticket somebody already filed, kept beside a case or a failed result. https only, at most 2000 characters; the label is plain text, at most 200, and is shown as text, never as markup. The author is a userId; the dashboard names them from GET /v1/members. No type: Bugs (#1065) will read the same links as external tickets.
object
Only when reading ONE case (#1262): its Test Value Score — the list carries the same per case in its value map.
object
true — no verdict in the history (D = 0): 50, whatever the other parts.
object
Each value is 0 to 1, to four decimals — the number the score was made of.
object
object
F; null with no verdict.
object
D
object
B
object
T
From the results, or the estimate in ms; null with neither.
null — no measured result in the project.
Only when reading ONE case: the states the caller may move it to from here, per the lifecycle table and who the caller is - a session is a person, a bearer token is automation. A screen renders exactly these as actions and never lists moves itself. The current state is not included.
When it last moved. Absent on a case that has not moved.
The suite this case is filed under, if any. Always a suite, never a folder (AC-03).
Five levels in rank order — low < normal < important < high < critical. Metadata: changing it does not bump the text version.
The time the case takes by hand (#1881), as 1h 30m, 5m or 45s — the spelling a write takes back. Absent while nobody estimated it (stored as NULL, which is not 0). Metadata: changing it does not bump the text version.
estimate in whole seconds, for a report that adds them up. Absent with estimate; send estimate to change it.
Order among the cases of its suite (or the unfiled ones) — dense, 0-based, renumbered on every write that places a case (AC-05).
An assertion about the case (#1246): this test is unstable by nature. Diagnostics — a person or a machine may set it. Always present, false until set. Metadata: changing it does not bump the text version. ?flaky=1 (or 0) on the list filters on it.
Field id → value, as stored on the entity. A string field takes text (1–1 000 characters), a number field a number, a list field the id of one option — or, when multiple, an array of option ids without repeats (up to 50), kept in the order written. At most 16 384 bytes of JSON.
object
A person’s decision about the case (#1246): it still runs and its results are recorded, and a failure is not to count toward the run (#1247). Not the same as isFlaky — a flaky case need not be muted, and a muted one need not be flaky. Always present, false until set; a parameterized case is one case, so muting it mutes every row of its parameters. A mute may come from a token; the audit names who — a person, or the token (a runner’s is_muted is an annotation in the code, written and reviewed like test.skip). Every set and clear is an entry in the case’s audit feed. ?muted=1 (or 0) on the list filters on it.
Read from the title by the server, each once, in first-seen order. Derived: sent back, never taken on the way in as a field of its own — tags on a write rewrites the title.
Free text beside the steps. Part of what a result was produced against, so a change bumps the text version (AC-09). Absent when never set. 16 384 bytes of UTF-8 at most.
What must hold before the steps. Same rules as description.
The parameters table (D7). Content like the two texts: a change bumps the version.
object
The identifiers this case has elsewhere (D2) — attached on every read; absent when it has none.
An identifier another tool already uses for this test, so a report can find its case without anyone typing a Plune id. The order of kind is load-bearing: it is the ranking that decides which key wins when several match different cases.
object
The id of this case’s eval in plune.yaml. An ingested run attaches its results to the case carrying the same id (ADR 0010); absent for cases the CLI does not run.
Only when reading ONE case: the source text of the one test() call an automated case references — the call itself, header and body, exactly as written in the file. Absent on a case that has never had one; present-and-unchanged when the file most recently failed to parse (the last known snapshot, not empty). 16 384 bytes of UTF-8 at most, the same ceiling description/precondition already carry.
SHA-256 hex digest of codeSnapshot, recomputed by the server on every write that touches it (ADR-0005) — never accepted from a client. Present whenever codeSnapshot is, and on the list too even though the text itself is not: a re-importer hashes its own freshly parsed text the same way and compares against this to decide changed vs unchanged without a second request per case.
Who wrote it (B8-team T3): the userId of the caller of POST /v1/test-cases or of a duplicate. Set by the server, never taken from a body, never changed by a PATCH. Absent on a case from before names were kept and on one the review queue created. Resolve it through GET /v1/members.
Who is to run it (B8-team T4): the userId of a member of the project. Set by PATCH {assigneeId} or the bulk assign action, never on create; null on a PATCH takes it away; leaving the project takes it away too. Absent means unassigned. GET /v1/test-cases?assignee=me|none|<userId> filters on it.
Where the text of the case came from (#1879), derived on read - no column, so every case has one, the ones from before included. manual: a person wrote it. ai-generated: created from an approved proposal in the review queue, or a field accepted from an AI draft, and not corrected since. ai-edited: a person corrected AI-written content - the reviewer before approving, or anyone after (the version moved), or the text of an accepted draft. Read-only; on the list and on the single read. GET /v1/test-cases?origin= filters on it.
An automated case’s code, as the review queue and the runs know it (#2201, ADR 0080), on the single read only; absent when there is nothing to say. approved: the approval of an automation proposal that wrote the snapshot the case holds now, with the person’s link - gone once the snapshot moved on. seen: the newest result that said which test() it ran (codeHash), after that approval - in-repo when it ran this snapshot, stale when it ran other code.
object
object
The userId who approved.
object
The run’s name; absent - it has none, and the date stands for it.
The commit the run reported (meta.sha).
The facts behind origin, on the single read only (#1879) - for a tooltip. Only what is already stored; ids of people, never addresses.
object
The userId that put the proposal in the review queue.
What the supplier said the proposal was derived from.
object
Fields a person changed on AI text: title, steps, expected (the reviewer, #1878), description, precondition (after an accepted draft).
A case made from a proposal whose content (title, texts, steps, parameters) has changed since.
The userId of the latest approval of the standing revision; absent when the policy merged it by itself.
Where the case came from, present only on one an approved proposal created (B-1). Read through that proposal rather than stored on the case, so it answers for every case ever created this way and can never disagree with the queue entry beside it. Absent on a case a person wrote — and absent, too, when the proposal named neither field: both mean nothing was reported.
object
object
The test-design technique the supplier named, as they named it.
The proposal whose approval created the case (GET /v1/review-items/{id}), on every case a proposal created - also when it named neither source nor technique and provenance is absent. Read-only, derived like provenance; absent on a case a person wrote (#2839).
Where a field’s text came from, once it was accepted from an AI draft (automated-case-description-draft, AC-17): per field, the model, the date of the draft, who asked, who accepted and when, and — if a person edited the text afterwards — who and when. A field has an entry only while its text is the one a draft produced: the next accepted draft replaces it and clearing the field drops it. The key is absent when no field was ever accepted from a draft. Written only by the case store’s single write path — never taken from a client body, on a PATCH or on Markdown import alike.
object
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
object
A stored test case — the metadata plus the body of its type.
object
Accepted: 1 or 2. Responses are always 2 — a v1 record is upgraded on read.
Carries its @tag tail — the one source of tags (ADR 0032). The dashboard shows the clean title and the tags as chips.
The case’s place in its lifecycle. in_review is a case a proposal produced and nobody has confirmed yet; detached is one whose source stopped being reported. Who may move it where depends on whether the caller is a session or a token.
Derived from state for clients on v1, never stored. in_review answers as draft and detached as active — v1 has no word for either.
Why the case last moved.
Only when reading ONE case (#1064): its defect links, oldest first, at most 20; [] for a case without any. The list carries a count per case instead (defectCounts).
A defect (#1064): the address of a ticket somebody already filed, kept beside a case or a failed result. https only, at most 2000 characters; the label is plain text, at most 200, and is shown as text, never as markup. The author is a userId; the dashboard names them from GET /v1/members. No type: Bugs (#1065) will read the same links as external tickets.
object
Only when reading ONE case (#1262): its Test Value Score — the list carries the same per case in its value map.
object
true — no verdict in the history (D = 0): 50, whatever the other parts.
object
Each value is 0 to 1, to four decimals — the number the score was made of.
object
object
F; null with no verdict.
object
D
object
B
object
T
From the results, or the estimate in ms; null with neither.
null — no measured result in the project.
Only when reading ONE case: the states the caller may move it to from here, per the lifecycle table and who the caller is - a session is a person, a bearer token is automation. A screen renders exactly these as actions and never lists moves itself. The current state is not included.
When it last moved. Absent on a case that has not moved.
The suite this case is filed under, if any. Always a suite, never a folder (AC-03).
Five levels in rank order — low < normal < important < high < critical. Metadata: changing it does not bump the text version.
The time the case takes by hand (#1881), as 1h 30m, 5m or 45s — the spelling a write takes back. Absent while nobody estimated it (stored as NULL, which is not 0). Metadata: changing it does not bump the text version.
estimate in whole seconds, for a report that adds them up. Absent with estimate; send estimate to change it.
Order among the cases of its suite (or the unfiled ones) — dense, 0-based, renumbered on every write that places a case (AC-05).
An assertion about the case (#1246): this test is unstable by nature. Diagnostics — a person or a machine may set it. Always present, false until set. Metadata: changing it does not bump the text version. ?flaky=1 (or 0) on the list filters on it.
Field id → value, as stored on the entity. A string field takes text (1–1 000 characters), a number field a number, a list field the id of one option — or, when multiple, an array of option ids without repeats (up to 50), kept in the order written. At most 16 384 bytes of JSON.
object
A person’s decision about the case (#1246): it still runs and its results are recorded, and a failure is not to count toward the run (#1247). Not the same as isFlaky — a flaky case need not be muted, and a muted one need not be flaky. Always present, false until set; a parameterized case is one case, so muting it mutes every row of its parameters. A mute may come from a token; the audit names who — a person, or the token (a runner’s is_muted is an annotation in the code, written and reviewed like test.skip). Every set and clear is an entry in the case’s audit feed. ?muted=1 (or 0) on the list filters on it.
Read from the title by the server, each once, in first-seen order. Derived: sent back, never taken on the way in as a field of its own — tags on a write rewrites the title.
Free text beside the steps. Part of what a result was produced against, so a change bumps the text version (AC-09). Absent when never set. 16 384 bytes of UTF-8 at most.
What must hold before the steps. Same rules as description.
The parameters table (D7). Content like the two texts: a change bumps the version.
object
The identifiers this case has elsewhere (D2) — attached on every read; absent when it has none.
An identifier another tool already uses for this test, so a report can find its case without anyone typing a Plune id. The order of kind is load-bearing: it is the ranking that decides which key wins when several match different cases.
object
The id of this case’s eval in plune.yaml. An ingested run attaches its results to the case carrying the same id (ADR 0010); absent for cases the CLI does not run.
Only when reading ONE case: the source text of the one test() call an automated case references — the call itself, header and body, exactly as written in the file. Absent on a case that has never had one; present-and-unchanged when the file most recently failed to parse (the last known snapshot, not empty). 16 384 bytes of UTF-8 at most, the same ceiling description/precondition already carry.
SHA-256 hex digest of codeSnapshot, recomputed by the server on every write that touches it (ADR-0005) — never accepted from a client. Present whenever codeSnapshot is, and on the list too even though the text itself is not: a re-importer hashes its own freshly parsed text the same way and compares against this to decide changed vs unchanged without a second request per case.
Who wrote it (B8-team T3): the userId of the caller of POST /v1/test-cases or of a duplicate. Set by the server, never taken from a body, never changed by a PATCH. Absent on a case from before names were kept and on one the review queue created. Resolve it through GET /v1/members.
Who is to run it (B8-team T4): the userId of a member of the project. Set by PATCH {assigneeId} or the bulk assign action, never on create; null on a PATCH takes it away; leaving the project takes it away too. Absent means unassigned. GET /v1/test-cases?assignee=me|none|<userId> filters on it.
Where the text of the case came from (#1879), derived on read - no column, so every case has one, the ones from before included. manual: a person wrote it. ai-generated: created from an approved proposal in the review queue, or a field accepted from an AI draft, and not corrected since. ai-edited: a person corrected AI-written content - the reviewer before approving, or anyone after (the version moved), or the text of an accepted draft. Read-only; on the list and on the single read. GET /v1/test-cases?origin= filters on it.
An automated case’s code, as the review queue and the runs know it (#2201, ADR 0080), on the single read only; absent when there is nothing to say. approved: the approval of an automation proposal that wrote the snapshot the case holds now, with the person’s link - gone once the snapshot moved on. seen: the newest result that said which test() it ran (codeHash), after that approval - in-repo when it ran this snapshot, stale when it ran other code.
object
object
The userId who approved.
object
The run’s name; absent - it has none, and the date stands for it.
The commit the run reported (meta.sha).
The facts behind origin, on the single read only (#1879) - for a tooltip. Only what is already stored; ids of people, never addresses.
object
The userId that put the proposal in the review queue.
What the supplier said the proposal was derived from.
object
Fields a person changed on AI text: title, steps, expected (the reviewer, #1878), description, precondition (after an accepted draft).
A case made from a proposal whose content (title, texts, steps, parameters) has changed since.
The userId of the latest approval of the standing revision; absent when the policy merged it by itself.
Where the case came from, present only on one an approved proposal created (B-1). Read through that proposal rather than stored on the case, so it answers for every case ever created this way and can never disagree with the queue entry beside it. Absent on a case a person wrote — and absent, too, when the proposal named neither field: both mean nothing was reported.
object
object
The test-design technique the supplier named, as they named it.
The proposal whose approval created the case (GET /v1/review-items/{id}), on every case a proposal created - also when it named neither source nor technique and provenance is absent. Read-only, derived like provenance; absent on a case a person wrote (#2839).
Where a field’s text came from, once it was accepted from an AI draft (automated-case-description-draft, AC-17): per field, the model, the date of the draft, who asked, who accepted and when, and — if a person edited the text afterwards — who and when. A field has an entry only while its text is the one a draft produced: the next accepted draft replaces it and clearing the field drops it. The key is absent when no field was ever accepted from a draft. Written only by the case store’s single write path — never taken from a client body, on a PATCH or on Markdown import alike.
object
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
A stored test case — the metadata plus the body of its type.
object
Accepted: 1 or 2. Responses are always 2 — a v1 record is upgraded on read.
Carries its @tag tail — the one source of tags (ADR 0032). The dashboard shows the clean title and the tags as chips.
The case’s place in its lifecycle. in_review is a case a proposal produced and nobody has confirmed yet; detached is one whose source stopped being reported. Who may move it where depends on whether the caller is a session or a token.
Derived from state for clients on v1, never stored. in_review answers as draft and detached as active — v1 has no word for either.
Why the case last moved.
Only when reading ONE case (#1064): its defect links, oldest first, at most 20; [] for a case without any. The list carries a count per case instead (defectCounts).
A defect (#1064): the address of a ticket somebody already filed, kept beside a case or a failed result. https only, at most 2000 characters; the label is plain text, at most 200, and is shown as text, never as markup. The author is a userId; the dashboard names them from GET /v1/members. No type: Bugs (#1065) will read the same links as external tickets.
object
Only when reading ONE case (#1262): its Test Value Score — the list carries the same per case in its value map.
object
true — no verdict in the history (D = 0): 50, whatever the other parts.
object
Each value is 0 to 1, to four decimals — the number the score was made of.
object
object
F; null with no verdict.
object
D
object
B
object
T
From the results, or the estimate in ms; null with neither.
null — no measured result in the project.
Only when reading ONE case: the states the caller may move it to from here, per the lifecycle table and who the caller is - a session is a person, a bearer token is automation. A screen renders exactly these as actions and never lists moves itself. The current state is not included.
When it last moved. Absent on a case that has not moved.
The suite this case is filed under, if any. Always a suite, never a folder (AC-03).
Five levels in rank order — low < normal < important < high < critical. Metadata: changing it does not bump the text version.
The time the case takes by hand (#1881), as 1h 30m, 5m or 45s — the spelling a write takes back. Absent while nobody estimated it (stored as NULL, which is not 0). Metadata: changing it does not bump the text version.
estimate in whole seconds, for a report that adds them up. Absent with estimate; send estimate to change it.
Order among the cases of its suite (or the unfiled ones) — dense, 0-based, renumbered on every write that places a case (AC-05).
An assertion about the case (#1246): this test is unstable by nature. Diagnostics — a person or a machine may set it. Always present, false until set. Metadata: changing it does not bump the text version. ?flaky=1 (or 0) on the list filters on it.
Field id → value, as stored on the entity. A string field takes text (1–1 000 characters), a number field a number, a list field the id of one option — or, when multiple, an array of option ids without repeats (up to 50), kept in the order written. At most 16 384 bytes of JSON.
object
A person’s decision about the case (#1246): it still runs and its results are recorded, and a failure is not to count toward the run (#1247). Not the same as isFlaky — a flaky case need not be muted, and a muted one need not be flaky. Always present, false until set; a parameterized case is one case, so muting it mutes every row of its parameters. A mute may come from a token; the audit names who — a person, or the token (a runner’s is_muted is an annotation in the code, written and reviewed like test.skip). Every set and clear is an entry in the case’s audit feed. ?muted=1 (or 0) on the list filters on it.
Read from the title by the server, each once, in first-seen order. Derived: sent back, never taken on the way in as a field of its own — tags on a write rewrites the title.
Free text beside the steps. Part of what a result was produced against, so a change bumps the text version (AC-09). Absent when never set. 16 384 bytes of UTF-8 at most.
What must hold before the steps. Same rules as description.
The parameters table (D7). Content like the two texts: a change bumps the version.
object
The identifiers this case has elsewhere (D2) — attached on every read; absent when it has none.
An identifier another tool already uses for this test, so a report can find its case without anyone typing a Plune id. The order of kind is load-bearing: it is the ranking that decides which key wins when several match different cases.
object
The id of this case’s eval in plune.yaml. An ingested run attaches its results to the case carrying the same id (ADR 0010); absent for cases the CLI does not run.
Only when reading ONE case: the source text of the one test() call an automated case references — the call itself, header and body, exactly as written in the file. Absent on a case that has never had one; present-and-unchanged when the file most recently failed to parse (the last known snapshot, not empty). 16 384 bytes of UTF-8 at most, the same ceiling description/precondition already carry.
SHA-256 hex digest of codeSnapshot, recomputed by the server on every write that touches it (ADR-0005) — never accepted from a client. Present whenever codeSnapshot is, and on the list too even though the text itself is not: a re-importer hashes its own freshly parsed text the same way and compares against this to decide changed vs unchanged without a second request per case.
Who wrote it (B8-team T3): the userId of the caller of POST /v1/test-cases or of a duplicate. Set by the server, never taken from a body, never changed by a PATCH. Absent on a case from before names were kept and on one the review queue created. Resolve it through GET /v1/members.
Who is to run it (B8-team T4): the userId of a member of the project. Set by PATCH {assigneeId} or the bulk assign action, never on create; null on a PATCH takes it away; leaving the project takes it away too. Absent means unassigned. GET /v1/test-cases?assignee=me|none|<userId> filters on it.
Where the text of the case came from (#1879), derived on read - no column, so every case has one, the ones from before included. manual: a person wrote it. ai-generated: created from an approved proposal in the review queue, or a field accepted from an AI draft, and not corrected since. ai-edited: a person corrected AI-written content - the reviewer before approving, or anyone after (the version moved), or the text of an accepted draft. Read-only; on the list and on the single read. GET /v1/test-cases?origin= filters on it.
An automated case’s code, as the review queue and the runs know it (#2201, ADR 0080), on the single read only; absent when there is nothing to say. approved: the approval of an automation proposal that wrote the snapshot the case holds now, with the person’s link - gone once the snapshot moved on. seen: the newest result that said which test() it ran (codeHash), after that approval - in-repo when it ran this snapshot, stale when it ran other code.
object
object
The userId who approved.
object
The run’s name; absent - it has none, and the date stands for it.
The commit the run reported (meta.sha).
The facts behind origin, on the single read only (#1879) - for a tooltip. Only what is already stored; ids of people, never addresses.
object
The userId that put the proposal in the review queue.
What the supplier said the proposal was derived from.
object
Fields a person changed on AI text: title, steps, expected (the reviewer, #1878), description, precondition (after an accepted draft).
A case made from a proposal whose content (title, texts, steps, parameters) has changed since.
The userId of the latest approval of the standing revision; absent when the policy merged it by itself.
Where the case came from, present only on one an approved proposal created (B-1). Read through that proposal rather than stored on the case, so it answers for every case ever created this way and can never disagree with the queue entry beside it. Absent on a case a person wrote — and absent, too, when the proposal named neither field: both mean nothing was reported.
object
object
The test-design technique the supplier named, as they named it.
The proposal whose approval created the case (GET /v1/review-items/{id}), on every case a proposal created - also when it named neither source nor technique and provenance is absent. Read-only, derived like provenance; absent on a case a person wrote (#2839).
Where a field’s text came from, once it was accepted from an AI draft (automated-case-description-draft, AC-17): per field, the model, the date of the draft, who asked, who accepted and when, and — if a person edited the text afterwards — who and when. A field has an entry only while its text is the one a draft produced: the next accepted draft replaces it and clearing the field drops it. The key is absent when no field was ever accepted from a draft. Written only by the case store’s single write path — never taken from a client body, on a PATCH or on Markdown import alike.
object
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
One field’s provenance (AC-17). The same facts the dashboard shows under the field; the hash the server compares the code against is never part of it.
object
The model that drafted this text, as recorded on the call at the time — not the project’s current model: a later change must not relabel old text.
#829: the provider that made the draft, as recorded on the call. Absent on text accepted before the fallback existed.
#829: true when the fallback provider made the draft. Absent (not false) on text accepted before the fallback existed.
When the draft that produced this text was requested — “the date of the draft”.
userId of the member who asked for the draft — resolve through GET /v1/members like TestCaseMeta.createdBy.
userId of the member who accepted it into the case.
Present when a person edited this field after accepting it (AC-17); absent otherwise.
When editedBy last edited it. Present exactly when editedBy is.
Whether the case’s code snapshot changed, beyond whitespace, since this text was drafted (AC-16, AC-04b) — read again every time the case is read, not frozen when the text was accepted.
Stored with the case and returned unchanged. It links to nothing: golden sets were removed in ADR 0013, so this is a label the platform keeps, not a reference it resolves.
One assertion: a type plus whatever that type needs (ADR 0012). The remaining fields depend on type (e.g. values for contains-all, criteria for llm-judge).
object
Example
{ "schemaVersion": 1, "title": "Checkout — empty cart @smoke @checkout", "state": "draft", "status": "draft", "defects": [ { "id": "6f1c2b3a-0000-4000-8000-0000000000a7", "url": "https://tracker.example.com/browse/PLN-482", "label": "Coupon is not applied on an empty cart", "authorId": "6f1c2b3a-0000-4000-8000-0000000000a2" } ], "value": { "score": 55, "neutral": false, "weights": { "failures": 0.5, "defects": 0.3, "duration": 0.2 }, "parts": { "failures": { "value": 0.3, "runs": 40, "failures": 12 }, "depth": { "value": 0.8, "runs": 40, "limit": 50 }, "defects": { "value": 1, "bugs": 2, "links": 1 }, "duration": { "value": 0.55, "p50Ms": 4185, "projectP95Ms": 9300, "source": "results" } } }, "allowedStates": [ "draft" ], "priority": "low", "estimate": "1h 30m", "estimateSeconds": 5400, "custom": { "6f1c2b3a-0000-4000-8000-0000000000f4": [ "opt_chrome0001", "opt_firefox001" ] }, "tags": [ "smoke", "checkout" ], "examples": { "params": [ "Amount", "Outcome" ], "rows": [ [ "10.00", "pending" ], [ "0.00", "refused" ] ] }, "externalKeys": [ { "kind": "playwright-id" } ], "origin": "manual", "codeReview": { "seen": { "state": "in-repo" } }, "originDetail": { "source": { "kind": "url" } }, "provenance": { "source": { "kind": "url" } }, "textOrigin": { "description": { "provider": "anthropic" }, "precondition": { "provider": "anthropic" } }, "type": "manual"}A body that is not JSON, a position below 0, or a suiteId that is a folder or not the caller’s
object
Example generated
{ "error": "example"}No / invalid token or session
No such case in the caller’s project
object
Example generated
{ "error": "example"}The case is automated — identity is the spec
object
Example generated
{ "error": "example"}Two refusals share this status, and what to do about them is opposite. Rate-limited — the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442, #2092): Retry-After carries the seconds until the window rolls over, and waiting that long is the way out. Quota reached — a ceiling on what the project holds (runs in the last 24 hours, test cases, items waiting in the review queue, rules in force in the project’s memory): { error, quota }. A retry straight away frees nothing, so do not loop on it; the message says what makes room — deleting cases, working the queue down, an operator raising the limit — and the run quota, a rolling 24 hours, frees its oldest runs as they age out. Tell the two apart by the body: a 429 whose body has a quota object is a quota, one without it is a throttle. quota carries kind, limit, used, remaining and resetsAt: the figures behind the sentence, and for the run quota the instant its oldest run ages out (#1258). Retry-After is sent on a quota only where there is such an instant (the run quota: the whole seconds, at least 1, until resetsAt); the case, review-queue and project quotas free only by an action, have resetsAt: null, and send no Retry-After. GET /v1/quotas reads the same figures without a refusal.
object
The body of a 429 that is a quota and not a throttle: the sentence, and the figures behind it.
object
What was reached and the way out.
object
The ceiling. A write that would take used past it is refused with 429.
What the project holds now, counted by the same query that refuses a write.
limit - used, never below 0.
When the oldest counted run ages out of the rolling 24 hours and a slot frees on its own. null for the two quotas only an action frees (delete cases, decide queue items), and for a run quota with no runs in the window.
Examples
A throttle: no `quota`; wait `Retry-After`
{ "error": "rate limit exceeded — slow down"}A quota (#2458): the MCP server ceiling; `resetsAt` is null, nothing frees it by waiting
{ "error": "MCP server quota reached — at most 50 servers per project, and a server cannot be removed yet. Ask an operator to raise the limit.", "quota": { "kind": "mcpServersPerProject", "limit": 50, "used": 50, "remaining": 0, "resetsAt": null }}Headers
Section titled “Headers ”Seconds until the window rolls over on a throttle; on a quota, until quota.resetsAt — sent only for the run quota, which has one