API - need a method to rank multiple photos at once #348

Closed
opened 2026-10-04 23:53:26 +02:00 by adam · 1 comment
Owner

pwg.images.setRank takes only one photo as an argument, which means the external application has to send a separate request for every photo in a gallery. With a high-latency connection and a large number of photos in the gallery, this causes a noticeable delay.
Please modify the call (or create a new call) to accept multiple photo IDs an array of image_id/rank pairs - this way all photos in a gallery can be re-ordered with just a single call.

pwg.images.setRank takes only one photo as an argument, which means the external application has to send a separate request for every photo in a gallery. With a high-latency connection and a large number of photos in the gallery, this causes a noticeable delay. Please modify the call (or create a new call) to accept multiple photo IDs an array of image_id/rank pairs - this way all photos in a gallery can be re-ordered with just a single call. <!-- github-sync-id:105035559 -->
adam closed this issue 2026-10-04 23:53:26 +02:00
Author
Owner

@vvinogradsky in Piwigo 2.8 you will be able to send the full list of image_ids for a given category_id. Just give them in the appropriate order. If you provide image_id as a list, rank won't be used.

@vvinogradsky in Piwigo 2.8 you will be able to send the full list of image_ids for a given category_id. Just give them in the appropriate order. If you provide image_id as a list, rank won't be used. <!-- github-comment-id:176227975 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#348