Put a deleted test case back
POST
/v1/test-cases/{id}/restore
const url = 'https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore';const options = {method: 'POST', 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 POST \ --url https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \ --header 'Authorization: Bearer <token>'The reverse of DELETE /v1/test-cases/{id} — for the account that owns the case (Settings → Bin) and for the owner of the deployment; everyone else gets 404, the same 404 an unknown id gets. A case that went with its suite comes back with the suite (POST /v1/suites/{id}/restore), not on its own: asking for it alone answers 409 and names the suite.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Responses
Section titled “ Responses ”Restored
Media type application/json
object
id
required
string
restored
required
boolean
Example generated
{ "id": "example", "restored": true}No / invalid token or session
No such deleted case in the caller’s project (the deployment owner reaches every project)
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}The case belongs to a deleted suite — restore the suite instead
Media type application/json
object
error
required
string
code
required
string
Example
{ "code": "suite_deleted"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over