Rest API - retrieve CS agents with specific values

Hi,

We're currently trying to retrieve a list of CS agents with REST api. Each agent in the list must return value of 

- Full name

- Default category

- OwnedBy: AssociateId 

 

We've been able to fetch "full name" and "default category" with the Archive/dynamic endpoint, but still missing the associateId which is required to post a new ticket on CS agent. 

Any possible solutions to achieve this? 

Please let me know if you need more information.

Our build is currently on: 84R7

 

Thanks!

RE: Rest API - retrieve CS agents with specific values

Update: we managed to retrieve what we wanted with this: 

/api/v1/Archive/dynamic?$format=json&$filter=ejuser.status = ('1','2')&$select=ejuser.username,ejuser.loginname,ejuser.default_category.(ej_category->id).fullname,ejuser.(associate->ejuserId).associate_id,ejuser.email

Av: Linda Tran 14. nov 2019