Stuck on deploying a custom Data Action. Provider v1.15.4. Environment US-1 Production.
Applying genesyscloud_data_action resource fails with HTTP 400 Bad Request.
Error output:
Error: POST /api/v2/analytics/datadefinitions: 400 Bad Request
Body: {"errors":[{"code":"bad.request","message":"Invalid JSON payload for data definition"}]}
HCL snippet:
resource "genesyscloud_data_action" "my_action" {
name = "TestAction"
description = "Test"
data_definition {
name = "TestDef"
data_type = "string"
...
}
}
JSON payload in data_definition block is valid when tested via Postman directly against the REST API. The issue seems specific to Terraform serialization or provider handling of nested objects in this resource type.
Has anyone successfully deployed complex Data Actions with nested JSON structures using the current provider version? Any workarounds or known issues with the genesyscloud_data_action resource?