---
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

## Changes

> 6 revisions in range; 1 could not be searched.

- **2021-07-03** `bbdf2b4f5986` — 1 info
  - endpoint added
- **2021-01-31** `b41246f2c913` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/koel/apis/koel-api/changes/api/playlist/:playlistId/songs/patch.md)

---

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