Struggling to figure out why the provider rejects WebRTC phone creation with a 400 error. The same HCL works fine in prod, but dev fails on every apply.
Error log:
Error: error creating WebRTC phone: 400 Bad Request
Response: {"errors":[{"code":"bad.request","message":"Invalid device type or missing required fields for WebRTC device creation."}]}
Provider: 1.15.0
Region: apac-1
Terraform: 1.7.4
Resource config:
resource "genesyscloud_webrtc_phone" "agent_phone" {
name = "Dev-Agent-Webrtc"
user_id = genesyscloud_user.dev.id
# Tried explicit type as per [Genesys Docs](https://developer.genesys.cloud/api/cx-platform/webrtc/)
device_type = "WEBRTC"
depends_on = [genesyscloud_user.dev]
}
Checked the API directly via Postman. Same 400. The device_type field seems ignored or malformed by the provider. Is there a specific attribute required for WebRTC in apac-1 that is not documented? The flow definition imports fine, but endpoint provisioning is broken.
Need to automate this. Manual UI creation works, but TF fails.