Genesyscloud_analytics_segment 422 on date_range type

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?

Make sure you set the type to “fixed” instead of “last_30_days” and provide explicit start/end timestamps, as the Terraform provider often rejects relative strings in this block.

Note: Check the Genesys Cloud API docs for the exact ISO8601 format required for fixed ranges.