Skip to content

Rest API

Restore a content library change

POST
/api/v1/wiki/change-log/{id}/restore

Roll a page back to one side of a logged change.

Notes

  • target picks which snapshot to write back: before undoes the change, after re-applies it. Anything other than after is treated as before
  • The restore is itself recorded in the change log
id
required
integer

Numeric change-log entry id.

x-api-key
required
string

Your API key from account settings.

x-user-email
required
string

The email address of your user.

x-account-id
required
string

The ID of your account. You can find this in the account settings.

x-website-id
required
string

The ID of the workspace you want to use.

object
target
string
default: before
Allowed values: before after
Example
{
"target": "before"
}

The change was restored.

object
id
integer
restored
boolean

Unauthorized - invalid API key.

Bad request - missing websiteId, or an invalid change-log id.