Skip to content

Add rating-only update endpoint to Collection API#555

Merged
bpepple merged 1 commit into
masterfrom
collection-rating-update
Jul 12, 2026
Merged

Add rating-only update endpoint to Collection API#555
bpepple merged 1 commit into
masterfrom
collection-rating-update

Conversation

@bpepple

@bpepple bpepple commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Add PATCH/PUT /api/collection/{id}/ support via a new CollectionRatingUpdateSerializer that only accepts rating, so read-tracking (is_read/date_read/read_dates) stays exclusively managed through the scrobble endpoint.
  • CollectionViewSet now includes UpdateModelMixin, routed to the rating-only serializer for update/partial_update; ownership scoping is unchanged (get_queryset() already filters to the authenticated user, so updating another user's item 404s).
  • Document the new endpoint in api/README.md alongside the existing Collection/Scrobble sections.

Allow PATCH/PUT on /api/collection/{id}/ to update a collection item's rating without touching read-tracking data, keeping is_read/date_read writable only through scrobble.
@bpepple bpepple self-assigned this Jul 12, 2026
@bpepple bpepple added enhancement New feature or request api An API bug/feature collections User collections labels Jul 12, 2026
@bpepple
bpepple merged commit a5ebe6f into master Jul 12, 2026
2 checks passed
@bpepple
bpepple deleted the collection-rating-update branch July 12, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api An API bug/feature collections User collections enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant