Actions36
- List Files
- Search Files
- Download File
- Upload File
- Create Folder
- Rename
- Delete
- Copy / Move
- List Starred Files
- List Recent Files
- List Shared with Me
- List Shared with Others
- Get File Ancestors
- Create Share Link
- List Share Links
- Update Share Permissions
- List Labels
- Create Label
- Update Label
- Delete Label
- Add Label to File
- List Files by Label
- Star File
- Convert Office File
- List Team Folders
- Get Team Folder Members
- Create Webhook
- List Webhooks
- Get Webhook
- Update Webhook
- Delete Webhook
- Get File Thumbnail
- Upload from DSM
- Request Access
- Custom Drive Call
- List Drive APIs
List Files by Label
AI-generatedSummary
List files associated with a specific label in Synology Drive, using the provided Label ID and pagination parameters.
Inputs
- Label ID (required) — Specifies the ID of the label whose files should be listed.
- Limit — Limits the number of files returned. Default is 50.
- Offset — Specifies the starting point for listing files, used for pagination. Default is 0.
Output shape
an object containing success status and data, where data includes an array of files associated with the label and pagination details
The output includes the files labeled with the specified Label ID, limited and offset according to the input parameters. Additional extraParams can be included but are optional.
Examples
Example 1: List files for a given label with default pagination
Set the 'Label ID' to the target label, use default 'Limit' as 50 and 'Offset' as 0 to fetch the first 50 files.
