Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Add Label to File

AI-generated

Summary

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.

Links

Discussion