From 3b28960675778bfa8a83f414d4868e10f9f6309c Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 17 Oct 2024 23:42:09 +0200 Subject: [PATCH] [docs] Document changing track attribs time_played/time_skipped --- docs/json-api.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/json-api.md b/docs/json-api.md index 3a53121233..f12469bf54 100644 --- a/docs/json-api.md +++ b/docs/json-api.md @@ -1622,7 +1622,7 @@ curl -X GET "http://localhost:3689/api/library/tracks/27/playlists" ### Update track properties -Change properties of one or more tracks (supported properties are "rating", "play_count", "skip_count" and "usermark") +Change properties of one or more tracks. **Endpoint** @@ -1636,6 +1636,8 @@ PUT /api/library/tracks | --------------- | -------- | ----------------------- | | tracks | array | Array of track objects | +See query parameters for update of a single track for a list of properties that can be modified. + **Response** On success returns the HTTP `204 No Content` success status response code. @@ -1666,6 +1668,8 @@ PUT /api/library/tracks/{id} | play_count | Either `increment` or `reset` or the new count. `increment` will increment `play_count` and update `time_played`, `reset` will set `play_count` and `skip_count` to zero and delete `time_played` and `time_skipped` | | skip_count | The new skip count | | usermark | The new usermark (>= 0) | +| time_played | Modify last played timestamp | +| time_skipped | Modify last skipped timestamp | **Response**