Anyone free to help troubleshoot this 422 error when applying an analytics segment via Terraform. The provider version is 1.12.4. The error points to the date_range configuration being invalid, but the JSON structure matches the API docs.
resource "genesyscloud_analytics_segment" "test_segment" {
name = "Test Segment"
description = "Test"
date_range {
type = "last_30_days"
}
entity_filters {
entity_type = "conversation"
filter {
path = "routing.queue.id"
op = "eq"
display = "Queue ID"
values = ["12345"]
}
}
}
The CLI returns error creating analytics segment: 422 Unprocessable Entity. Is the last_30_days type deprecated or handled differently in the provider?