StationsApi.GetStations limits Entities to 100

Hello,

We are using C# to get the list of stations in Genesys Cloud.

The request is this one:
StationsApi.GetStations(pageSize: 500, sortBy: "name");

The response returns
class StationEntityListing {
Entities: System.Collections.Generic.List`1[PureCloudPlatform.Client.V2.Model.Station]
PageSize: 500
PageNumber: 1
Total: 121
LastUri: /api/v2/stations?pageSize=500&pageNumber=1
FirstUri: /api/v2/stations?pageSize=500&pageNumber=1
SelfUri: /api/v2/stations?pageSize=500&pageNumber=1
NextUri:
PreviousUri:
PageCount: 1
}
And only 100 entries in the Entities list.

Are we doing something wrong? Is this a known issue?

Thank you in advance.

Ricardo.

I would guess that the page size limit is 100, but it's not documented. If you believe the response you're getting from the API is incorrect, please open a case with Genesys Cloud Care to investigate that's being returned in your org.

Hello Tim,

It looks like the page limit is 500. In fact, when we try the same request in the API Explorer of Developer Tools, Entities contains all stations.

To me, it seems something related to the .NET library.

Thanks again.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.