Actions14
- File/Folder Actions
- File Actions
- Folder Actions
- Share Actions
Share → Share by Link (File or Folder)
AI-generatedOverview
This node operation allows users to share a file or folder by generating a shareable link. It supports selecting the target type (file or folder), choosing the file or folder either via dropdown browsing or manual ID input, setting access levels (read-only or edit), and optionally configuring an expiry duration and password protection for the share link. This operation is useful for scenarios where users want to quickly share access to specific files or folders with others, controlling permissions and security settings.
Use Case Examples
- Sharing a project folder with team members with read-only access and an expiry of 7 days.
- Sharing a specific file with edit permissions and password protection for secure collaboration.
Properties
| Name | Meaning |
|---|---|
| Target Type | Choose whether to share a file or a folder. |
| File Select Mode | Choose how to select the file or folder, either by browsing a dropdown or by manually entering an ID. |
| Target Folder (Source) Name or ID | Select the source folder from which to choose files or folders, or leave empty for root. Available when using dropdown mode. |
| File (in This Folder) Name or ID | Select the specific file within the chosen folder when sharing a file, available in dropdown mode. |
| File ID (Manual) | Manually enter the file ID when sharing a file using manual ID mode. |
| Source Folder ID (Manual) | Manually enter the source folder ID when sharing a folder using manual ID mode. |
| Access Level | Set the access level for the share link, either read-only or can edit. |
| Use Expiry | Enable or disable setting an expiry duration for the share link. |
| Expiry (Duration) | Specify the duration and unit for the share link expiry, such as days, hours, or minutes. |
| Protect with Password | Enable or disable password protection for the share link. |
| Password | Set the password to protect the share link if password protection is enabled. |
Output
JSON
jsonshareUrl- The URL of the generated share link.accessLevel- The access level granted by the share link (read or write).expiry- The expiry date and time of the share link, if set.passwordProtected- Indicates if the share link is protected by a password.
Dependencies
- An OAuth2 API credential for Twake Drive is required to authenticate and authorize the sharing operations.
Troubleshooting
- Ensure the file or folder ID provided is correct and accessible by the authenticated user to avoid errors.
- If using expiry, verify the duration and unit are valid and supported by the API.
- Password protection requires a non-empty password; leaving it empty when enabled may cause errors.
- Common error messages include permission denied, invalid ID, or expired token; resolving these involves checking credentials, permissions, and input values.