cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1428
Views
5
Helpful
5
Replies

Downloading UCCX script using API

benny3
Level 1
Level 1

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:

{
"apiError": [
{
"errorData": "Internal Server Error",
"errorMessage": "The server encountered an unexpected condition which prevented it from fulfilling the request",
"errorType": "500"
}
]
}
 

 

I did manage to get the list of all the script using:

https://hq-uccx.abc.inc/adminapi/script

 

<?xml version="1.0" encoding="UTF-8"?>
<Files>
<Script>
<File>
<path>/</path>
<FileName>HelloWorld2.aef</FileName>
<Details>
<size>7.22 KB</size>
<dateModified>10/20/2015 08:43:18 PM GMT+00:00</dateModified>
<modifiedBy>administrator</modifiedBy>
</Details>
<refresh>false</refresh>
</File>
</Script>
</Files>


Any ideas what am I doing wrong?
5 Replies 5

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

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

 

dekwan
Cisco Employee
Cisco Employee

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

That is so random, but based on that link should work. +5

 

david

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