Stuck on deploying a custom Agent Script resource using the Genesys Cloud CLI in our AU-1 BYOC environment.
The Terraform plan applies successfully, but the actual push to the environment fails with a 400 Bad Request on the /api/v2/scripts endpoint.
Environment:
- Genesys Cloud CLI v2.1.0
- Terraform Provider v1.12.0
- AU-1 BYOC
HCL Snippet:
resource "genesyscloud_script" "agent_handoff" {
name = "Agent Handoff Script"
description = "Standard handoff procedure"
type = "agent"
blocks {
block {
name = "Intro"
type = "text"
content = "Please confirm the customer details."
}
}
}
Error Output:
Error creating script: 400 Bad Request
{"message":"Validation failed","errors":[{"message":"Block content exceeds maximum length","path":"blocks[0].content"}]}
The content is clearly under the limit. I checked the API docs.
“Text blocks support up to 2000 characters. Special characters must be escaped.”
I have escaped quotes and newlines. The block is only ~40 chars. Why is the CLI rejecting this?
Is there a known issue with the genesyscloud_script resource in BYOC regions? The same HCL works in our US-East sandbox without issues.