---
title: "Add media to the localplay server"
method: POST
path: "/democratic/{object_id}/localplay"
tags: ["Playback Control"]
---

# Add media to the localplay server

`POST /democratic/{object_id}/localplay`

## Path parameters

- `object_id` string, required

## Query parameters

- `command` 'add', required
- `type` 'song' | 'video' | 'podcast_episode' | 'channel' | 'broadcast' | 'democratic' | 'live_stream'
- `clear` 0 | 1

## Response `200`

Localplay response

- object

## Other responses

- `400` — Ampache API error response payload.

## Changes

- **2026-06-25** `7ed7a764efd9` — 1 info
  - added the non-success response with the status `400`
- **2026-05-11** `b515694fd82a` — 1 info
  - endpoint added
- **2026-02-19** `07f53972fdd7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/democratic/:object_id/localplay/post.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/aff89ca1eeff/schema)
