03-16-2021 03:30 AM
I'm using the sandbox lab and trying to download a script from UCCX using the API.
Following the documentation, I've tried invoking the following GET request
http://hq-uccx.abc.inc/adminapi/script/download/HelloWorld2.aef
but I get the following error response:
I did manage to get the list of all the script using:
https://hq-uccx.abc.inc/adminapi/script
03-16-2021 04:17 AM
That looks correct. Are you able to get anything like a prompt from the API? I wonder if you might be hitting some bug.
david
03-16-2021 05:26 AM
I manage to download the prompts without any problems.
E.g. the following API call works fine:
http://hq-uccx.abc.inc/adminapi/prompt/download/en_US/Hold.wav
03-16-2021 11:28 AM
Hi,
After searching the community, it looks like you need to do https://hq-uccx.abc.inc/adminapi/script/download//default/HelloWorld2.aef (double slash)
Take a look at the thread here: https://community.cisco.com/t5/contact-center/uccx-script-download-from-rest-api/td-p/2893636
Thanx,
Denise
03-16-2021 06:12 PM
03-16-2021 08:26 PM
Honestly, it is a bug in my opinion. Per their documentation, it shouldn't need two slashes but at least it allows people to use the API. I tried it out and the two slashes does indeed work. I am going to open a bug for this.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide