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
Add Label to File
AI-generatedSummary
Add one or more label IDs to a specified file in Synology Drive to organize or categorize it with labels.
Inputs
- File Path (required) — The full path of the file to which labels will be added.
- Label IDs (JSON) — A JSON array of label ID strings to add to the file; defaults to an empty array if not specified.
Output shape
a single JSON object indicating success status and any response data from the Synology Drive API call to add labels
The output returns the API response from SYNO.SynologyDrive.Files add_label method, which includes success flag and any related data or error information.
