Hello ,
I am trying to Export Recordings to a external S3 Bucket.
I have already enabled S3 Bulk Recording export Integration in Genesys cloud.
I have Implemented /api/v2/recording/jobs and my Request looks like this
{
"action": "EXPORT",
"actionDate": ,
"includeScreenRecordings": true,
"integrationId": "",
"order": "asc",
"orderBy": "conversationStart",
"conversationQuery": {
"interval":,
"conversationFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "conversationEnd",
"operator": "exists",
"value": null
}
]
}
]
}
}
After Creating Recording Job when i check status of the Job using /api/v2/recording/jobs/{jobId}
I get response like
> {
> "id": "<jobID>",
> "state": "READY",
> "recordingJobsQuery": {
> "action": "EXPORT",
> "actionDate": "2021-08-23T12:00:00Z",
> "integrationId": "<Intgration ID>",
> "includeScreenRecordings": true,
> "conversationQuery": {
> "conversationFilters": [
> {
> "type": "or",
> "predicates": [
> {
> "type": "dimension",
> "dimension": "conversationEnd",
> "operator": "exists"
> }
> ]
> }
> ],
> "interval": "2021-08-23T12:00:00.000Z/2021-08-24T12:00:00.000Z",
> "startOfDayIntervalMatching": false
> }
> },
> "dateCreated": "2021-08-24T15:16:43.726Z",
> "totalConversations": 6764,
> "totalRecordings": 10374,
> "totalSkippedRecordings": 0,
> "totalFailedRecordings": 0,
> "totalProcessedRecordings": 0,
> "percentProgress": 0,
> "selfUri": "/api/v2/recording/jobs/<JOB ID>",
> "user": {
> "id": "<OAuth USer>",
> "selfUri": "/api/v2/users/<OAuth USer>"
> }
> }
Its been almost 20 + hours and Every time when i check status it returns status as Ready
Am i missing something here ?
Do i have call Execute Job PUT : /api/v2/recording/jobs/{jobId} ?
If i use PUT: : /api/v2/recording/jobs/{jobId}
const recordingsAPI = new platformClient.RecordingApi();
await recordingsAPI.putRecordingJob(jobID,{})
If i call this i am getting error with
'{"message":"Expected State to not be null","code":"bad request","status":400,...... }'
Can anyone help me with this ?