cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
861
Views
1
Helpful
4
Replies

Cannot able to access the file path of capture API - Access denied

Sundarsara
Level 1
Level 1

Hi Team,

We couldn't be able to access the file path url of Capture API of Webex contact center. So could you please help us on this and guide us if we missed anything on configuration part in order to access the file path of recordings. 

Output response of Capture API:

{
    "meta": {
        "orgId": "XXXX",
        "urlExpiration": 0
    },
    "data": [
        {
            "taskId": "XXXX",
            "recording": [
                {
                    "id": "XXXX",
                    "segment": false,
                    "attributes": {
                        "fileName": "combinedRecordings.wav",
                        "filePath": "https://cjp-ccone-produs1-media-storage-recording.s3.amazonaws.com/XXXX",
                        "startTime": 1689073991167,
                        "stopTime": 1689074051447,
                        "participants": [
                            "XXXX",
                            "XXXX"
                        ],
                        "channel1": "Agent",
                        "channel2": "Caller"
                    }
                }
            ],
            "transcription": []
        }
    ]
}

1 Accepted Solution

Arunabh Bhattacharjee
Cisco Employee
Cisco Employee

Hello @Sundarsara 

 

If you set your url expiration to 0, it will expire - hence the error access denied - request has expired.

Would recommend you check the url expiration field on the captures POST call and set it to like 5 mins or 30 mins depends on how long you will take to download the file from the temporary link.

The lesser the expiration time, the more secure.

 

Thanks & Regards,

Arunabh.

View solution in original post

4 Replies 4

Sundarsara
Level 1
Level 1

Hi @Arunabh Bhattacharjee ,

Yes, I have full admin access from our side. I can able to update the Global Variable-GCS_Emergency directly in portal. But while trying to update global variable through API, we are facing access denied issue.

Please find the attachment.

Thanks,

Sundarrajan S

Sundarsara
Level 1
Level 1

Hi @Arunabh Bhattacharjee,

Yes its working fine now. Thanks for your information.

Also we have another one query,

When we tried to update the default value in Global Variable API from 'true' to 'false', its throwing Access denied.

Request Body we are using:

{
  "active"false,
  "agentEditable"false,
  "agentViewable"false,
  "createdTime"0,
  "defaultValue""false",
  "description""",
  "desktopLabel""",
  "id""XXXX",
  "lastUpdatedTime"0,
  "name""GCS_Emergency",
  "organizationId""XXXX",
  "reportable"false,
  "variableType""Boolean",
  "version"0
}

Error details:

[{"description":"Access denied - Client is forbidden access to the resource"}]

Output Response of Global Variable API we got:

{
  "trackingId""ccconfig_XXXX",
  "error": {
    "key""403",
    "reason""Access denied - Client is forbidden access to the resource",
    "message": [
      {
        "description""Access denied - Client is forbidden access to the resource"
      }
    ]
  }
}

Like previous do we missed anything or do we need to make any changes from our side to access?

Please check and help us to proceed further.

PFA

Thanks and Regards,

Sundarrajan S

 

 

 

 

Access Denied is usually related to the requirements on the user’s profile – is that an admin user?
Admin user should be able to update the Global Variable via API

Please check the license type on the Users level, on control hub – is it a full admin or CC Service admin user

Thanks & Regards,
Arunabh

Arunabh Bhattacharjee
Cisco Employee
Cisco Employee

Hello @Sundarsara 

 

If you set your url expiration to 0, it will expire - hence the error access denied - request has expired.

Would recommend you check the url expiration field on the captures POST call and set it to like 5 mins or 30 mins depends on how long you will take to download the file from the temporary link.

The lesser the expiration time, the more secure.

 

Thanks & Regards,

Arunabh.