Trash

Restore one item or list from the trash

Bring back one soft-deleted item or list from the trash (see list_deleted). Restoring a list also brings back the items deleted with it; an item whose list is still in the trash can't come back alone (restore the list first). An item whose list is gone for good lands on the hub's default list for what it was (movedToDefaultList: true). Restores one thing per call. If it is already live the call succeeds with alreadyLive: true.

post/api/v1/trash/restore

Request

  • Base URL
    https://api.roma.app
  • URL
    https://api.roma.app/api/v1/trash/restore
  • Auth
    HTTP bearer

Request body

type'item' | 'list' required

The entry's type, as list_deleted reported it.

idstring required

The deleted item's or list's id.

Response

The tool's result.

restoredboolean required
alreadyLiveboolean
typestring required
idstring required
titlestring nullable required
restoredItemsnumber
movedToDefaultListboolean

Changes

No recorded changes to this operation across all 1 revision of this API.