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
Update Label
AI-generatedSummary
Update an existing label's name and color in Synology Drive by specifying its unique Label ID along with the new label name and color.
Inputs
- Label ID (required) — The unique identifier of the label to update.
- Label Name (required) — The new name to assign to the label.
- Label Color — The new color for the label, chosen from predefined options (Red, Orange, Yellow, Green, Blue, Purple). Defaults to Blue if not provided.
Output shape
a single JSON object representing the updated label update operation result.
The output contains the API response indicating success or failure of the label update operation. Additional fields from the Synology Drive API response may be included.
Examples
Example 1: Update a label's name to 'Work Documents' with color green.
Set 'Label ID' to the existing label's ID, 'Label Name' to 'Work Documents', and 'Label Color' to 'green'.
