Problem getting Queue member ring number

GET /api/v2/routing/queues/{queueId}/members

I'm using this endpoint in a Javascript app to get the members of a specific queue.

let apiInstance = new platformClient.RoutingApi();

    let opts = { 

        'pageSize': 25, // Number | Page size [max 100]

        'pageNumber': 1, // Number | Page number

        'sortBy': "name" // String | Sort by

    };

    var data = await apiInstance.getRoutingQueueMembers(queue.id, opts);

This is the code and when I execute it, it says.

Queue members can only be queried by name, direct, and joined.

I've confirmed with the dev team for this resource that sortBy was documented for this resource accidentally and it does not support using that query parameter. They will be updating the documentation to reflect that. To remediate your issue, remove that query parameter as it is not expected to function.

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