- Quick question about mapping Zendesk agent availability to Genesys Cloud WFM schedules.
- We are in the EU-West region and trying to automate the migration of shift patterns.
- The goal is to replicate the manual ‘Available’ toggles from Zendesk into GC WFM schedule lines.
- POST /api/v2/wfm/schedules returns a 400 Bad Request consistently.
- The payload includes the correct
userId and scheduleLines array structure.
- Specifically, the
startTime and endTime ISO 8601 strings trigger the error.
- Zendesk uses a simple boolean for availability, while GC requires precise time blocks.
- We are converting the boolean to a 9-to-5 block for testing, but the API rejects it.
- The error message says:
Invalid schedule line: start time must be before end time.
- However, the logs show the timestamps are clearly ordered correctly.
- We are using the standard REST API v2 endpoints.
- Is there a timezone offset issue with the EU-West instance?
- Or does the WFM API expect a specific format for the
date field?
- Any tips on handling this conversion from simple availability to complex schedule lines?