---
title: "Create a new playlist"
method: PUT
path: "/playlists"
tags: ["Playlists"]
---

# Create a new playlist

`PUT /playlists`

## Query parameters

- `name` string, required
- `type` 'public' | 'private'

## Response `200`

Playlist created

- PlaylistObject
  - `id` string, required
  - `name` string, nullable, required
  - `owner` string, nullable, required
  - `user` object, required
    - `id` string, required
    - `username` string, nullable, required
  - `items` union, required
    - object[]
    - integer
  - `type` string, nullable, required
  - `art` string, nullable, required
  - `has_access` boolean, required
  - `has_collaborate` boolean, required
  - `has_art` boolean, required
  - `flag` boolean, required
  - `rating` integer, nullable, required
  - `averagerating` number, nullable, required
  - `md5` string, nullable, required
  - `last_update` integer, nullable, required
  - `time` integer, required

## Other responses

- `400` — Ampache API error response payload.

## Changes

- **2026-07-21** `2ff18e50dcc1` — 16 info
  - added the required property `art` to the response with the `200` status
  - added the required property `averagerating` to the response with the `200` status
  - added the required property `flag` to the response with the `200` status
  - added the required property `has_access` to the response with the `200` status
  - …12 more
- **2026-07-17** `9abb9bf6d3bf` — 1 info
  - removed the non-success response with the status `400`
- **2026-06-25** `7ed7a764efd9` — 1 info
  - added the non-success response with the status `400`
- **2026-02-24** `3c57979a295f` — 1 info
  - endpoint added
- **2026-02-19** `07f53972fdd7` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/playlists/put.md)

---

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