IPWorks Cloud 2020 Python Edition

Questions / Feedback?

restore_resource Method

Restores a resource from the trash.

Syntax

def restore_resource(resource_id: str, parent_id: str, new_name: str) -> None: ...

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 Python Edition - Version 20.0 [Build 8265]