Problem
The TEAM MIGRATION PAYLOAD keeps rejecting during the ATOMIC POST OPERATION. We’re attempting to transfer agents across departments via a Node.js script, but the organization engine constraints are blocking the BATCH LIMIT. The ROLE PRESERVATION DIRECTIVE appears to conflict with the maximum migration batch limits. I’d much rather handle this through the ADMIN UI, but the volume is just too high right now. The latency tracking is all over the place.
const payload = {
sourceTeamId: 'src-123',
targetTeamId: 'tgt-456',
rolePreservation: true,
memberIds: ['user-a', 'user-b', 'user-c']
};
await fetch(`${baseUrl}/api/v2/teams/migrate`, {
method: 'POST',
body: JSON.stringify(payload),
headers: { 'Content-Type': 'application/json' }
});
Error
Returns a 400 Bad Request. The response body mentions a SCHEMA VALIDATION FAILURE on the membership overlap verification pipeline. It says the format verification doesn’t pass for the third member. Honestly, the audit logs are useless right now.
Question
How do we adjust the migrate schema to bypass the overlap check without breaking the automatic group reassignment triggers? The WEBHOOK CALLBACK for the external directory are timing out anyway. Running Node v18.17.0 and Genesys Cloud SDK v6.2.1.