Hey everyone, thanks Ben for the help on the import issue last week - got that sorted. Now I’m trying to fully automate flow versioning with Terraform - the idea being we can rollback to known-good versions quickly, right? - and I’m running into a weird error during the apply phase.
The flow itself is pretty simple: a single greeting node, a decision node checking for a specific DNIS, and then a transfer node. I’m publishing a new version each time, incrementing the version_name. The publish step seems to choke on the data.
Here’s the error from the Terraform output:
Error: publishing flow version: POST /api/v2/architect/flows/{flowId}/versions/publish - 400 Bad Request
{
"message": "invalid resource data",
"code": 400,
"status": "ERROR",
"errors": [
{
"field": "data.attributes.flowVersion.attributes.flow.attributes.name",
"code": "invalid_value",
"message": "Flow name cannot be empty"
}
]
}
I’ve checked the Terraform config - the name attribute is populated. It’s being passed correctly to the genesyscloud_architect_flow_version resource. I’ve also tried manually publishing the same version through the Zoom Contact Center UI and it works fine. It feels like Terraform isn’t sending the flow name properly in the payload. Is anyone else seeing this?