cursor based API is not working as expected for satisfaction rating and skips | Community
Skip to main content

cursor based API is not working as expected for satisfaction rating and skips

  • August 6, 2021
  • 2 replies
  • 0 views

Hi,

when using offset API,

sort_order=asc works as expected and sort the data in ascending order based on updated_at date.

https://xxxxx.zendesk.com/api/v2/satisfaction_ratings.json?sort_order=asc;&start_time=1628254000

 

but sort order does not work using cursor API, by default it sort the data in descending

 

https://xxxxx.zendesk.com/api/v2/satisfaction_ratings.json?page[size]=100&sort_order=desc;&start_time=1628254000

 

can any one help with thi

2 replies

Trapta
  • August 6, 2021

Hi @Pavan Bangad,

Not sure if this will help but have you tried https://xxxxx.zendesk.com/api/v2/satisfaction_ratings.json?per_page=100&sort_order=desc;&start_time=1628254000

Let us know if this helps.

Thanks


  • Author
  • August 8, 2021

@Trapta :  The above API call is offset based API. Zendesk is recommending to use cursor based API. Sorting is working as expected for offset based API but not for cursor based API