IPWorks Cloud 2020 macOS Edition

Questions / Feedback?

UpdateLink Method

Updates a request or download link.

Syntax

public func updateLink(linkId: String) throws -> Void

Remarks

This method updates the link information for a link identified by LinkId. The the class requires the link to be in the Link* properties and be modified from there.

The following properties can be updated from the ShareFileLink* properties:

  • ExpirationDate
  • MaxDownloads
  • Name
  • RequireLogin
  • Title


// Updates a link to require login.
shareFile.Links[1].RequireLogin = true;
shareFile.UpdateLink(shareFile.Links[1].Id);

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