Struggling to figure out why the POST /api/v2/wfm/schedule/publish endpoint returns a 409 Conflict error when attempting to override agent scripts via the scripting API. The payload includes valid scriptId references and targets agents in the America/Chicago timezone, yet the response body consistently cites schedule_conflict without specifying the conflicting rule.
This is caused by concurrent schedule locks. The system prevents overlapping publish requests to maintain data integrity. Try implementing a retry mechanism with exponential backoff. See the conflict resolution details here: https://developer.genesys.cloud/api-docs/wfm#publish-conflicts.
Check your queue activity metrics to identify if the conflict stems from overlapping skill assignments rather than pure scheduling locks.
{
"scriptId": "valid-id",
"override": false
}
The performance dashboard often reveals hidden routing dependencies that cause these publish failures.