Actions38
- 📝 文章 (Article) Actions
- 📂 文章分类 (Category) Actions
- 🏷️ 文章标签 (Tag) Actions
- 📄 页面 (Page) Actions
- 💬 说说 (Moment) Actions
- 💭 评论 (Comment) Actions
- 🖼️ 相册 (Album) Actions
- 📁 相册分类 (Album Category) Actions
- 📎 文件管理 (File) Actions
- 🔗 直链 (Direct Link) Actions
- 🔗 友情链接 (Link) Actions
- 🔍 全站搜索 (Search) Actions
- 🌐 公共接口 (Public) Actions
📎 文件管理 (File) → ✏️ 重命名 (Rename)
AI-generatedSummary
Rename a file in the SunLink file management system by specifying its current file ID and the desired new name.
Inputs
- sourceId (required) — The ID of the source file to rename.
- newName (required) — The new name to assign to the file.
Output shape
a single JSON object representing the renamed file or the API response confirming the rename action.
The output data is returned as JSON from the SunLink API rename endpoint. Errors during renaming throw an error unless 'Continue On Fail' is enabled, in which case error information is included in the output.
