v38

OpenAPI 3.0.3AGPL-3.0raw.githubusercontent.com2026-08-022461333.9 MB
Now Playing

Record a play for a song

Take a song_id and update the object_count and user_activity table with a play. This allows other sources to record play history to Ampache.

post/songs/{song_id}/record-play

Path parameters

song_idstring required

Unique identifier of the song.

Query parameters

userstring
clientstring

Client/agent name recorded with the request.

dateinteger

Request body

userstring
clientstring

Client/agent name recorded with the request.

dateinteger

Response

Recorded

successstring