---
title: "Update a playlist"
method: PATCH
path: "/api/playlist/{playlistId}/songs"
tags: ["playlist"]
---

# Update a playlist

`PATCH /api/playlist/{playlistId}/songs`

Update a playlist (name and, if a smart playlist, its rules)

## Request body

- object
  - `name` string
  - `rules` Playlist[]
    - `id` integer, required
    - `name` string, required
    - `rules` Playlist[], required — An array of Rule objects if the playlist is a Smart playlist
    - `is_smart` boolean, required — Whether the playlist is of Smart (dynamic) type

## Response `200`

OK

- Playlist — A Playlist model
  - `id` integer, required
  - `name` string, required
  - `rules` Playlist[], required — An array of Rule objects if the playlist is a Smart playlist
  - `is_smart` boolean, required — Whether the playlist is of Smart (dynamic) type

---

[API](https://skmtc.net/koel/apis/koel-api.md) · [All operations](https://skmtc.net/koel/apis/koel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/koel/koel-api/revisions/b8837d22df45/schema)
