최근 검색
최근 검색 없음

Terry Sue
가입한 날짜: 2024년 11월 20일
·
마지막 활동: 2024년 12월 02일
팔로잉
0
팔로워
0
총 활동 수
3
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Terry Sue
Terry Sue님이 에 게시물을 만듦
Hi,
I'm using the List Requests API as documented here: https://developer.zendesk.com/api-reference/ticketing/tickets/ticket-requests/#list-requests
When I use cursor pagination and attempt to sort the request the response is not sorted. If I make the same request with offset pagination it sorts fine.
The documentation mentions that the sort operations are supported and makes no mention of pagination types affecting the sort operations; it even recommends using cursor pagination over offset pagination.
Here's the request I'm making: {{baseUrl}}/api/v2/requests.json?sort_by=updated_at&sort_order=desc&page[size]=5
And the response with only the relevant data:
{
"requests": [
{
"updated_at": "2024-11-06T16:15:28Z"
},
{
"updated_at": "2024-11-06T16:17:21Z"
},
{
"updated_at": "2024-11-06T16:14:44Z"
},
{
"updated_at": "2024-11-01T20:12:45Z"
},
{
"updated_at": "2024-11-15T22:23:45Z"
}
],
"meta": {
"has_more": true,
"after_cursor": "...",
"before_cursor": "..."
}
}
As you can see the updated_at fields are in random order. Changing the sorting field does not change the order of the response in any way.
Is the documentation not accurate? Or is this a bug?
2024년 11월 20일에 게시됨 · Terry Sue
0
팔로워
3
투표 수
2
댓글