Struggling to figure out why the Script API returns a 422 Unprocessable Entity error when attempting to validate agent scripts against our published WFM schedules. We are using the /api/v2/scripts/{scriptId}/validations endpoint with the standard payload structure defined in the v2 documentation. The error response indicates a mismatch in the expected agent capacity fields, specifically referencing the max_concurrent_sessions attribute which seems to be ignored during the initial schedule publish phase.
Our environment is running Genesys Cloud release 2024-02 with the WFM module fully integrated. We have 500+ agents in the Chicago timezone, and this issue surfaces consistently when we try to automate script assignments based on shift swaps. The JSON body includes all required fields, yet the validation service rejects the request citing an invalid reference to the schedule adherence rules. This breaks our automated workflow for updating agent capabilities before the weekly schedule goes live.
Has anyone encountered this specific validation failure? We need a reliable way to ensure scripts align with agent availability without manual intervention. The current workaround involves disabling the validation step, which introduces risk. Any insights on how to properly format the capacity constraints for the Script API would be greatly appreciated.