Quality evaluation webhook handler returning 422 on WFM schedule group UUID mapping

@genesys/purecloud-platform-client-v2 version 2.24.1 is throwing a 422 on the Quality evaluation webhook handler. The EventBridge rule fires correctly when a new submission hits the quality.evaluation.submitted event. Lambda picks it up, parses the JSON, and tries to push a schedule override via POST /api/v2/wfm/schedulemanagement/groups. The response body keeps returning VALIDATION_ERROR: scheduleGroup UUID mismatch. Mic stays hot during the retry window, which is annoying since the JST clock jumps ahead and the bearer token expires mid-execution. The OAuth client has the wfm:schedulemanagement scope attached, but the SDK still refuses to serialize the scheduleGroupId field properly.

PureCloudPlatformClientV2 validates the payload structure automatically, but it’s stripping the nested scheduleGroup object before the HTTP request goes out. The EventBridge payload transformation looks fine on the console, yet the Lambda environment variable GENESYS_REGION=ap-northeast-1 forces a cross-region call that breaks the UUID mapping. Error logs dump a 422 every single time the cron job runs at 02:00 JST. Node 18 runtime doesn’t help either, since the fetch wrapper drops the Accept: application/json header on the second retry. The WFM adherence export queue backs up instantly when this happens. Doing jack all about the schema validation failure. EventBridge dead-letter queue fills up with malformed payloads. The API gateway logs show the request hitting v2/wfm before timing out at 5 seconds.

{
 "error": {
 "code": "VALIDATION_ERROR",
 "message": "Field 'scheduleGroup' does not match expected UUID format in WFM context.",
 "details": [
 {
 "code": "SCHEMA_MISMATCH",
 "message": "Expected UUID, received object with nested scheduleGroupId property"
 }
 ]
 }
}

quality.evaluation.submitted event payload lacks scheduleGroupId, so POST /api/v2/wfm/schedulemanagement/groups throws VALIDATION_ERROR on mismatch. You’ll need to resolve the actual UUID via GET /api/v2/wfm/schedulemanagement/groups/{id} first.

Inject the resolved string into PureCloudPlatformClientV2.WfmScheduleManagementApi before executing postWfmScheduleManagementGroups. Missing wfm:schedulemanagement:write scope won’t validate anyway.

{ "scheduleGroupId": "9f8e7d6c-5b4a-3210-fedc-ba9876543210", "overrideType": "available" }