Agent Scripting API 422 Error During Zendesk Migration

I’m completely stumped as to why the PUT request to /api/v2/scripts returns a 422 Unprocessable Entity error when mapping our old Zendesk macros.

The payload validates fine in Postman, but the Architect flow rejects the scriptVersionId field.

  • Environment: EU-1
  • SDK: Genesys Cloud JS SDK v2.45.0
  • Source: Zendesk Suite 8.1

The error message claims scriptId is invalid, yet it exists in the system.