The data action is failing with "invalid parameter values" (400) consistently. It’s returning that error during the POST to /api/v2/integrations/actions/{actionId}/execute. The module accepts a map of string-to-string parameters, passes them to the action, yet the API rejects it. Why is it failing parameter validation? It’s likely the action definition itself is the problem - it’s expecting a different structure or encoding.
For what it’s worth, the action is defined as accepting a JSON payload, and the Terraform module is correctly formatting the parameters as a JSON string. The issue isn’t the Terraform serialization. It’s the Data Action itself.
resource "genesys_cloud_data_action_execution" "example" {
action_id = "a1b2c3d4-e5f6-7890-1234-567890abcdef"
parameters = jsonencode({
"param1" = "value1"
"param2" = "value2"
})
}
Here’s what’s been tried:
- Verified the action ID is correct (200).
- Confirmed the parameter names match the action definition (404).
- Tested the API directly with Postman - same error (400).
- Checked the Data Action configuration in Genesys Cloud - no obvious errors.
- Module version 1.2.3, Terraform Cloud run agent v13.