cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting categories by position via Magento API

Sorting categories by position via Magento API

Hi there,

 

I can't get a categories list filtered by position with the following request:

 

<host>/V1/categories/list?searchCriteria[sortOrders][0][field]=position&searchCriteria[sortOrders][0][direction]=ASC

Am I missing something? Is it a kind of bug or limitation?

 

Thanks in advance,

Dave

1 REPLY 1

Re: Sorting categories by position via Magento API

Yes. It is a bug of Magento. However, I think it is solved in the Magento 2.3-develop on Github. You can checkout the source code and try again.

 

Have a nice day !