Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
divya_vishwakarma
Contributor II
Contributor II

I am using Qlik rest API's to list all items using items endpoint, sort not working when using +name, or +updatedAt etc, but same with - works

Following below document
https://qlik.dev/apis/rest/items/
It clearly states for ascending and descending order we can use + and -
With - we are able to sort in descending order but with + we get bad request error
 
sort not working when using +name, or +updatedAt etc, but same with - works

 

divya_vishwakarma_0-1725440074941.png

 

Labels (2)
1 Solution

Accepted Solutions
CedLeb
Employee
Employee

Hi Divya,

To make it working you need to URL encode the "+", i.e. "%2B"

So, to apply an ascending sorting by the field "name", you need to call /api/v1/items?sort=%2Bname 

We know it's not really user-friendly and will work on enhancing that.

View solution in original post

4 Replies
CedLeb
Employee
Employee

Hi Divya,

To make it working you need to URL encode the "+", i.e. "%2B"

So, to apply an ascending sorting by the field "name", you need to call /api/v1/items?sort=%2Bname 

We know it's not really user-friendly and will work on enhancing that.

divya_vishwakarma
Contributor II
Contributor II
Author

Thank you for quick response, it works now.

CedLeb
Employee
Employee

Hi Divya,

 

Digging into this issue with the team, it appears that this issue happens with Postman, and even if the bug is closed now, some users still complain: https://github.com/postmanlabs/postman-app-support/issues/2517

If you use curl or another client, the "+" should work.

 

 

divya_vishwakarma
Contributor II
Contributor II
Author

I am using python request module which was also giving me issue with +