@musallam/storage-and-collaboration-client
    Preparing search index...
    • This endpoint restores an existing folder, identified by its assetId, within the organization's ESM shared storage to an ACTIVE state. Descendants of the folder will have their states recomputed to their previous state. This operation is only permitted if the requester has appropriate write-level permissions on the folder.


      NOTE:

      • Folders already in an ACTIVE state will remain ACTIVE and return 200 OK.
      • Restore operations can only be invoked on roots of DELETED trees. Restore calls made on assets in a DELETED_PARENT state will return a 409 Conflict error.
      • Descendants of this folder that were in a DELETED state prior its deletion will remain DELETED. Their respective descendants will also remain in a DELETED_PARENT or DELETED state as before.
      • Hard-deleted folders will return a 404 Not Found error.
      • If an asset with the same path already exists, the restored folder will be renamed automatically.
      • If the requester lacks the required permissions or the folder does not exist, an appropriate error response will be returned.

      Parameters

      Returns Promise<FolderAsset>