Agent Scripting API 409 Conflict on Multi-Org Script Updates

Background
Our AppFoundry integration manages agent script versions across multiple Genesys Cloud organizations. The application uses the scripts:write scope to programmatically update script content and publish changes via the standard REST endpoints. This process functions correctly for most tenant environments.

Issue
Why does this setting trigger a 409 Conflict error when attempting to update an existing script version? The error occurs specifically when the target organization has strict governance rules enabled for script modifications. The response body indicates a version mismatch, even though the request includes the correct ETag header retrieved from the initial GET request. The endpoint in question is PUT /api/v2/scripts/{scriptId}. The integration logic fetches the current script metadata, extracts the version ID, and includes it in the update payload. Despite this, the API rejects the update with a conflict status.

Troubleshooting
Verified that the OAuth token holds valid permissions. Confirmed the ETag value matches the server-side version timestamp. Tested with a single-org sandbox where the update succeeds without issue. The problem appears isolated to production orgs with advanced scripting governance policies. Are there specific headers or payload structures required to bypass these governance checks during automated updates? The documentation does not explicitly detail versioning requirements for governed scripts.