Recent searches


No recent searches

How to use Zendesk API sort_order : desc



Posted Feb 17, 2022

Hi i'm stuck in a problem. Can't use API for sort. By the way, the examples I've tried are 
"https://{domain}.zendesk.com/api/v2/tickets?sort_order=desc"

I'm not sure if I used it properly and please introduce me.

Reference
Ticket


 


0

2

2 comments

image avatar

Sebastiaan (Sparkly ⭐)

Community Moderator

Hey Jeddirok,

You should also include a 'sort_by'. Did you try something like:

https://{domain}.zendesk.com/api/v2/tickets?sort_by=id&sort_order=desc

Not all endpoints support sorting, but this one does (as the documentation that you're referring to mentions).

 

1


Hi Sebastiaan

Based on your advice, I can now follow suit.

Thank you very much for your advice.

Have a nice day.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post