REST API for Direct reports with worker type filter
Summary:
We are building Custom VBCS page, where manager can view their direct reportees. We are using below REST API and its getting the expected result but we want to see ONLY contingent worker type.
https://<>/hcmRestApi/resources/11.13.18.05/publicWorkers?expand=assignments.directReports&q=PersonNumber=<>
We want to filter the data to see the ONLY contingent worker type and tried to add in query parameter but its not working.
If add below worker type in query parameter its throwing an error message
https://<>/hcmRestApi/resources/11.13.18.05/publicWorkers?expand=assignments.directReports&q=PersonNumber=12345677 and assignments.directReports.WorkerType='C'
"Failed to build ViewCriteria from expression \"PersonNumber=12345677 and assignments.directReports.WorkerType='C'\" using view object PublicWorker. Unable to create criteria item from node: \"assignments\". ",