---
title: "Create a share"
method: PUT
path: "/shares"
tags: ["Shares"]
---

# Create a share

`PUT /shares`

## Query parameters

- `filter` string, required
- `type` 'album' | 'artist' | 'playlist' | 'podcast' | 'podcast_episode' | 'song' | 'video', required
- `description` string
- `expires` integer

## Response `200`

Share created

- ShareObject
  - `id` string, required
  - `name` string, required
  - `owner` string, required
  - `allow_stream` boolean, required
  - `allow_download` boolean, required
  - `creation_date` integer, required
  - `lastvisit_date` integer, required
  - `object_type` string, nullable, required
  - `object_id` string, required
  - `expire_days` integer, required
  - `max_counter` integer, required
  - `counter` integer, required
  - `secret` string, nullable, required
  - `public_url` string, nullable, required
  - `description` string, nullable, required

## Other responses

- `400` — Ampache API error response payload.

## Changes

- **2026-07-21** `2ff18e50dcc1` — 15 info
  - added the required property `allow_download` to the response with the `200` status
  - added the required property `allow_stream` to the response with the `200` status
  - added the required property `counter` to the response with the `200` status
  - added the required property `creation_date` to the response with the `200` status
  - …11 more
- **2026-07-17** `9abb9bf6d3bf` — 1 breaking
  - api removed without deprecation
- **2026-07-11** `2db906b9afb1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/shares/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)
