I’ve spent hours trying to figure out why deploying agent scripts via the genesyscloud_architect_flow resource fails with a 422 error. The JSON payload is valid in the UI but rejects in Terraform version 1.12.0. Error message: “Invalid script configuration: missing required node type”. Environment is prod-eu-1. Using latest provider. The script contains basic play audio nodes. Any clues on schema mismatch?
The best way to fix this is to ensure the nodes array in the Terraform config explicitly defines the type for each node. The API rejects payloads where the node type is implicit. Check the schema definition in the provider docs.
| Parameter | Requirement |
|---|---|
| node.type | Must be explicit (e.g., “PLAY_AUDIO”) |
| node.settings | Must match the type schema |
This resolves the 422 validation error.