Put one record back the way it was
POST
/v1/audit/{id}/restore
const url = 'https://beta-api.plune.ai/v1/audit/example/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/audit/example/restore \ --header 'Authorization: Bearer <token>'A restore is not an edit to history — it is a new change, applied through the ordinary store, so every rule still holds and the restore itself is audited with restoredFrom naming the entry it undid.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”The record as it now stands
Media type application/json
object
restored
required
object
key
additional properties
any
Example generated
{ "restored": {}}No / invalid token or session
No such entry, or not yours
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Cannot be put back; the body names why
Media type application/json
object
error
required
string
code
required
string
Example
{ "code": "not_found"}Rate limited