Add category update-position endpoint#331
Conversation
Fill the UpdateCategoryPositionCommand gap: PUT /categories/{categoryId}/positions
(scope category_write) to reorder a category within its parent.
Related to PrestaShop/PrestaShop#39630
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
hey @PrestaEdit, thanks for this 🙏 heads up: there's an overlap with #325, which also adds this exact #325 is a bit further along (already went through review), so to avoid both PRs conflicting on the same new file, would you mind closing this one in favour of #325? happy to credit your input there, and of course if you spot anything your version does better let me know and i'll fold it in 👍 |
|
Thanks for the heads up @mattgoud — you're right, #325 is the superset (root add/edit + this same position endpoint) and it's further along. Closing this in favour of yours. Your |
|
Superseded by #325. |
UpdateCategoryPositionCommandgap:PUT /categories/{categoryId}/positions(scopecategory_write) to reorder a category within its parent (parentCategoryId,way,positionslist in"<index>_<parentId>_<categoryId>"format,foundFirstbool).PUT /categories/{id}/positionswith a positions payload (client grantedcategory_write) reorders the category. Covered byCategoryPositionEndpointTest.