Controller: Link Management: SendFileLink
SendFilelink
Generates a filelink and sends an email to the provided email addresses.
Authentication Methods
- With a username and password
Input Parameter | Type | Description |
---|---|---|
Token* | String | Security token |
FileServerName* | String | FileServer name |
Path* | String | File or Foldername to remove |
ExpiryDays | Int | Number of days after which filelink expires. Note -1 denotes unlimited. |
Notify | Boolean | Whether or not the owner should receive a notification email when the filelink has been accessed |
Emails* | String[] | Array of email addresses that should receive the filelink |
Message | String | Contents of the filelink email |
ExpiryDownloads | Int | Amount of downloads after which to expire. Note -1 denotes unlimited |
AccessPassword | String | Password to protect FileLink access. Note passing an empty password parameter will disable password protection |
Access | AccessType | Possible access types: PreviewOnly, ReadWrite, ReadOnly |
Output Parameter | Type | Description |
---|---|---|
Success | Boolean | Returns true if the filelink was send |
*=required
EXAMPLES
curl -g 'https://secure.nomadesk.com/ctrller/api.php?Token=rrc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=SendFileLink&FileserverName=nmsa000001&Path=%2Ffile.txt&ExpiryDays=5&Notify=true&Emails[]=someone@nomadesk.com&Emails[]=someoneelse@nomadesk.com&Message=messagetext'
RESPONSE
<Response>
<Status>1</Status>
<Message></Message>
</Response>