歌曲管理

批量删除歌曲

根据歌曲 ID 列表批量删除歌曲。设置 delete_files=true 时同步删除本地音频文件(用于去重等场景)

post/songs/batch-delete

Request

  • Base URL: https://localhost:58091/api/v1
  • URL: https://localhost:58091/api/v1/songs/batch-delete
  • Auth: API key in header Authorization

Request body

delete_filesboolean

是否同步删除本地音频文件

idsinteger[]

要删除的歌曲 ID 列表

Example request

{
  "ids": [
    1
  ]
}

Response

删除成功

deletedinteger

实际删除的数量

Example response

{
  "deleted": 3
}

Changes

No recorded changes to this operation across all 166 revisions of this API.