Screen Recording Config 400 Error - Invalid Metrics in HCL

Does anyone understand why the screen recording configuration fails during apply?

Attempting to deploy screen recording settings via Terraform provider v1.65.2. Region: Australia/Sydney. The apply fails during the creation of a screen recording configuration resource. The error indicates a validation failure on the metrics array.

Terraform version: 1.7.0
Provider: genesyscloud v1.65.2
Region: au-1

Command:
terraform apply -auto-approve

Error output:
Error: Error creating Screen Recording Configuration: 400 Bad Request
with genesyscloud_screen_recording_configuration.main,
on main.tf line 15, in resource “genesyscloud_screen_recording_configuration” “main”:
15: resource “genesyscloud_screen_recording_configuration” “main” {

The request body sent to the API seems correct based on the provider documentation. However, the response indicates that the metrics field contains invalid values. Specifically, the metric key “agent_screen” is rejected.

HCL snippet:
resource “genesyscloud_screen_recording_configuration” “main” {
name = “Production Screen Recording”
description = “Automated deployment”
enabled = true

metrics {
key = “agent_screen”
label = “Agent Screen”
}

metrics {
key = “customer_screen”
label = “Customer Screen”
}
}

I have verified the metric keys against the Genesys Cloud API documentation. The keys appear valid. The issue persists across multiple environments. The same configuration works when created manually via the Genesys Cloud UI. This suggests a potential discrepancy between the UI validation and the API validation, or a bug in the Terraform provider.

Has anyone encountered similar issues with screen recording metrics? Any workarounds or alternative approaches?