IPWorks Cloud 2020 JavaScript Edition

Questions / Feedback?

RestoreResource Method

Restores a resource from the trash.

Syntax

async box.restoreResource(resourceId : string, parentId : string, newName : string): Promise<void>

Remarks

This method restores the resource specified by ResourceId from the trash.

Box will always ignore ParentId and/or NewName in favor of restoring a trashed resource to its original location with its original name if possible. The ParentId and NewName parameters are only considered if one or both of the following are true:

  • The original parent folder resource no longer exists (in which case ParentId will be used instead, if not empty).
  • The original resource name is already in use in the original (or new) parent folder (in which case NewName will be used instead, if not empty).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 JavaScript Edition - Version 20.0 [Build 8265]