---
title: "PUT /api/playlist/{playlistId}/sync"
method: PUT
path: "/api/playlist/{playlistId}/sync"
---

# PUT /api/playlist/{playlistId}/sync

`PUT /api/playlist/{playlistId}/sync`

Populate playlist's content. Instead of adding or removing songs individually, a playlist's content is replaced entirely with an array of song IDs.

## Request body

- object
  - `songs` string[], required — An array of song IDs

## Response `200`

OK

---

[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/versions/b8837d22df45/schema)
