Darren_Sawyer | 2022-08-02 16:02:06 UTC | #1
Hi,
I am trying to get the second page of a group API query but it doesn't appear to work.
I've looked at this article https://developer.genesys.cloud/platform/api/tips#6 which implies that "?pageSize=10&pageNumber=2" should work.
The query I am running is: /api/v2/groups/${input.groupId}/individuals?pageSize=10&pageNumber=2
No matter what I set I still get the first page. Eg:
{ "entities": [ { "id": "XXXXXXXXXXX-XXXXXXXXXXX", "selfUri": "/api/v2/users/XXXXXXXXXXX-XXXXXXXXXXX" }, ... ], "pageSize": 20, "pageNumber": 1, "total": 25, "pageCount": 2 }
Thanks, Darren
Darren_Sawyer | 2022-08-02 16:15:08 UTC | #2
Looking at the results it does actually display the 25 users so I guess these values are incorrect.
Darren_Sawyer, post:1, topic:15761
"pageSize": 20,
"pageNumber": 1,
"total": 25,
"pageCount": 2
Thanks, Darren
MelissaBailey | 2022-08-02 16:17:33 UTC | #3
https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-groups--groupId--individuals The individuals endpoint does not support paging parameters
system | 2022-09-02 16:17:49 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 15761