Screen recording api 422 unprocessable entity on batch export config

Has anyone figured out why the screen recording export config throws 422 unprocessable entity when setting retention_days to 30?

we are using genesyscloud_terraform_provider v1.78.2. the api endpoint /api/v2/analytics/screen-recordings/export-configs is rejecting the payload.

the error response is:

{
 "errors": [
 {
 "code": "invalid.fieldValue",
 "message": "retention_days must be between 1 and 21",
 "path": "retention_days"
 }
 ]
}

but the documentation says max is 90 days. also, when we try to set recording_type to “agent_screen_only”, it works fine. but adding “customer_screen” breaks it with a 400 bad request saying invalid recording type.

we are in ap-southeast-2 region. terraform plan shows no changes needed but apply fails.

is this a known bug in the provider or is the api out of sync with docs? we need to keep recordings for 30 days for compliance.

any workaround in github actions workflow? currently deploying via tf apply in ci/cd pipeline.

thanks.

Make sure you review the platform constraints for retention policies. The error indicates a hard limit of 21 days, not 30. This is a business rule enforced by the analytics engine, likely tied to storage costs or compliance. Adjust the configuration to comply with the 1-21 day range.

retention_days = 21