Restore an item
restore_itemPut an item back as it was at an event (item-created, item-updated, item-restored or item-deleted; find them with list_events and restorable: true), as a new version: its data, description, tags, readonly and activated. A deleted item is re-created with its original id (give it by id). Needs the token's restore permission; checked against the list's current schema and its write rules. Restoring twice makes two versions; restoring to the current version fails with ITEM_UNABLE_TO_RESTORE. 1 request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The item: its id or alias value (a deleted item only by id) | |
| list | Yes | The list: its id or pathName | |
| eventId | Yes | The event to restore to | |
| ifMatch | No | The etag you read the item with. The write only happens if nobody has changed the item since; otherwise it fails with ITEM_PRECONDITION_FAILED and nothing is written. Pass it whenever the write is based on something you read | |
| returnData | No | Return the item's data after the write (default: metadata only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | Yes | ||
| item | Yes |