Actions12
Rename
AI-generatedSummary
Renames a file or folder in Synology File Station.
Inputs
- filePath (required) — Full path to the file or folder to rename, e.g. /OpenClaw/file.txt.
- newName (required) — New name for the file or folder. Only the name changes; the item stays in the same folder.
Output shape
DSM API response object
Returns the raw JSON response from the successful DSM File Station rename call. If Continue On Fail is enabled, failed items return JSON with error and details instead of throwing.
Examples
Example 1: For each input item, the node reads File Path and New Name, then calls the DSM File Station rename API with path=filePath and name=newName. The item is renamed in place within the same parent directory; New Name is the new base name, not a new path. The node attempts SYNO.FileStation.Rename first and falls back to SYNO.FileStation.Manage if the DSM API reports the API/method/version is unavailable. It returns the DSM API response JSON.
Renames a file or folder in Synology File Station.
