Messaging Webchat Widget Config 400 via Terraform

Ran into a weird issue today with the messaging-webchat-widget resource in the Terraform provider. Deploying to APAC edge results in a validation error on the configuration block.

Error: creating Messaging Webchat Widget (id: 12345): 400 Bad Request

Provider v1.1.5. GC CLI v2.4.0. The JSON payload validates locally but fails on API post.

1 Like

If you check the docs, they mention the configuration block requires explicit schema versioning for APAC edges, so try adding "schema_version": 2 to the root of that JSON object before redeploying. This usually resolves the 400 validation mismatch between local validation and the edge API expectations.