WFM Evaluation Form 400 - Invalid JSON via Terraform

Configuration is broken for some reason… Provider v1.68.4. Region au-1. Attempting to deploy a Quality Management evaluation form via Terraform. The HCL validates locally without errors. The genesyscloud_quality_evaluation_form resource fails during apply with a 400 Bad Request.

The error indicates an invalid JSON structure for the section items. Specifically, the API rejects the weight configuration within a question block when type is set to numeric.

resource "genesyscloud_quality_evaluation_form" "test_form" {
 name = "Test Eval Form"
 description = "Automated deployment test"
 form_type = "quality"
 language = "en-US"

 section {
 name = "Agent Performance"
 items {
 question {
 question_text = "Did the agent greet the customer?"
 type = "numeric"
 weight = 10
 # Tried omitting weight, tried string "10", tried float 10.0
 # All result in 400: Invalid JSON structure
 }
 }
 }
}

Error log snippet:

Error: API request failed: 400 Bad Request
Details: Invalid JSON structure for section items. Field 'weight' is not supported for type 'numeric' in this context or format is incorrect.

This seems inconsistent with the API documentation which implies weights are universal. Direct POST to the WFM Quality API via Postman with the same JSON payload succeeds. The issue appears isolated to the Terraform provider serialization or validation logic.

  • Updated provider to latest patch v1.68.4. Verified no breaking changes in changelog regarding Quality forms. Retried apply with weight as integer and float. Both fail with identical 400.
  • Compared the generated JSON plan output from Terraform against the successful Postman payload. The structure appears identical. Suspect the provider might be adding a null or empty object wrapper that the API rejects, but cannot identify the difference visually.

Any insights on the correct HCL syntax for weighted numeric questions in WFM forms? Or is this a known provider bug for au-1?