Put a deleted run back
const url = 'https://beta-api.plune.ai/v1/runs/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/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \ --header 'Authorization: Bearer <token>'Not the same thing as POST /v1/audit/{id}/restore, which rolls back an EDIT to a record that never went away. This resurrects a deleted run together with the queue entries removed with it, and exactly those — anything deleted afterwards stays deleted. For the account that owns the run (Settings → Bin is their undo) and for the owner of the deployment in any project; everyone else gets 404, the same 404 an unknown id gets. GET /v1/bin lists what can be brought back.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Restored
object
Example generated
{ "id": "example", "restored": true}No / invalid token or session
No such deleted run in the caller’s project (the deployment owner reaches every project)
object
Example generated
{ "error": "example"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over