cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1132
Views
0
Helpful
2
Replies

UCCX Rest API - Store Files in Database - Internal Error 500

Lourido
Level 1
Level 1

Hello,

 

I'm currently trying to upload prompt files to UCCX using the API. The upload to the temporary directory shows successful, but I receive an Internal Error 500 when attempting to Store the File in the Database.

 

To upload the file, I'm following these steps: https://developer.cisco.com/docs/contact-center-express/#!upload-files-to-a-temporary-folder-for-prompt

 

As you can see in this screenshot, I receive 201 created:

Upload_File_To_Temp_Directory.PNG

 

When I move on to the next step of "Store Files in DB", I'm following this document: https://developer.cisco.com/docs/contact-center-express/#store-files-in-database-from-a-temporary-folder-for-prompt

 

When sending the request, I receive a 500 Internal Server Error. 

 

Here's the specific error:

Internal_Error_500.PNG

Here's the request (body):

Move_File_To_Database.PNG

Header: 
Header.PNG

I've been doing a lot of searching and I can't seem to find a solution... Any help/direction is appreciated. Thank you in advance.

2 Replies 2

Liran Farazis
Level 1
Level 1
 

ivan.karagodine
Level 1
Level 1

I just tested your code  with postman and it works. I got the prompt uploaded to temp folder and then moved to UCCX database so I can see it in the appropriate folder in UCCX prompt administration. The only difference in my test that I used the same prompt name. in your example you use test1.wav in step one and temp1.wav in step 2.