Stuck on a validation error when trying to configure a new outbound campaign that excludes numbers currently under legal hold. The goal is to prevent agents from dialing into any contact that has a legal_hold tag in the custom attributes, but the Campaign API is rejecting the segment definition.
When posting to /api/v2/outbound/campaigns, the response is a 400 Bad Request with the message: Invalid filter: Field 'custom_attributes.legal_hold' is not supported for exclusion lists in this campaign type.
We are using the Genesys Cloud REST API v2. The payload looks like this:
{
"name": "Legal Safe Outbound",
"contactListId": "list-123",
"segment": {
"field": "custom_attributes.legal_hold",
"operator": "notEquals",
"value": "true"
}
}
This works fine for internal analytics queries, but the outbound module seems stricter. Is there a specific way to structure the segment for legal hold exclusions? Or do we need to pre-filter the contact list before uploading? We need to ensure strict chain of custody compliance, so manual filtering is not an option. Any advice on the correct API structure would be appreciated.