We are trying to find a way to retrieve all published schedules for agents. I've been trying the endpoint:
/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search
This doesn't seem to return any schedules unless userIds are provided although userId is not marked as required, is this expected behaviour?
If so is there a way to retrive all published schedules (can be by businessUnitId or otherwise) without having to generate all userIds to provide in the request body first?
A clarification: The week ID is part of a composite ID of the schedule itself, it's not a variable. It's necessary for the back end to look up the schedule you're requesting; if you specify a week ID other than the start date of the schedule you want then the back end will return a 404 Not Found because the composite ID you specified does not exist.