Hi all,
We are experiencing a persistent validation error when attempting to trigger bulk recording exports via the Platform API for a legal discovery request. Our environment is Genesys Cloud (London region, standard cloud). We are using the /api/v2/recordings/bulkexport endpoint with the POST method.
The issue occurs specifically when we define the dateRange object in the request body. We need to export recordings from a specific 24-hour period last week to satisfy a chain of custody requirement. When we send the request with ISO 8601 formatted timestamps, the API returns a 400 Bad Request with the following error message:
{
"message": "Invalid date range specified. The end date must be after the start date.",
"details": "Validation failed for field 'dateRange.end'"
}
We have verified the timestamps multiple times. The start date is 2023-10-25T00:00:00.000Z and the end date is 2023-10-26T00:00:00.000Z. The end date is clearly after the start date. We have also tried adding milliseconds and varying the timezone offset, but the result is the same.
Interestingly, if we expand the range to a full month (e.g., 2023-10-01 to 2023-10-31), the job starts successfully. This suggests the issue is not with our credentials or the API endpoint itself, but with how the parser handles specific date ranges or perhaps a backend limitation on the minimum duration or specific date formats for legal hold exports.
Has anyone encountered this specific validation error with the v2 bulk export API? We are on the latest SDK version and have checked the documentation, but it does not mention any restrictions on 24-hour windows. Any guidance on the correct format or a workaround would be appreciated, as we are on a tight deadline for this discovery request.