RestoreItem
Restores a previously deleted file or folder from the trash back to its original location.
Input
| Name | Type | Description |
| ItemId | String | The Id of the file or folder to be restored from the trash. |
| ItemType | String | The type of item to restore. Supported values are Files and Folders. |
| NewName | String | An optional new name to assign to the restored item if you do not want to use the original name. |
| NewParentId | String | An optional parent folder Id to place the restored item into. Used if the original parent folder no longer exists. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the file or folder was successfully restored. |
| ID | String | The unique identifier of the restored item. |
| ParentId | String | The identifier of the parent folder containing the restored item. |