---
title: "重新排序歌单中的歌曲"
method: PUT
path: "/playlists/{id}/songs/reorder"
tags: ["歌单管理"]
---

# 重新排序歌单中的歌曲

`PUT /playlists/{id}/songs/reorder`

## Request

- Base URL: `https://localhost:58091/api/v1`
- URL: `https://localhost:58091/api/v1/playlists/{id}/songs/reorder`
- Auth: API key in header `Authorization`

重新排序歌单中的歌曲

## Path parameters

- `id` integer, required

## Request body

- object
  - `song_ids` integer[]

## Response `200`

排序成功

- object

## Other responses

- `400`: 请求数据错误
- `500`: 排序失败

---

[API](https://skmtc.dev/songloft-org/apis/songloft-api.md) · [All operations](https://skmtc.dev/songloft-org/apis/songloft-api/llms.txt) · [OpenAPI document](https://skmtc.dev/songloft-org/apis/songloft-api/revisions/29bc122e3e1e?raw)
