Skip to content

Put one record back the way it was

POST
/v1/audit/{id}/restore
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.

id
required
string

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
Allowed values: not_found not_restorable entity_gone changed_since unsupported_entity
Example
{
"code": "not_found"
}

Rate limited