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

UCCX API - Make REST Call - PUT Method

ln33147
Level 4
Level 4

Dears, 

I'm trying to use the UCCX API in UCCX Editor through the "Make REST Call" in order to change a script associated with an application ("http://UCCX-IP/adminapi/application/TestingAPP").

I was able to do it successfully in SoapUI, however, I got confused about how to use the PUT method in CCX Editor.

I appreciate if anyone can advise.

Thank you in advance.

Lara

5 Replies 5

ln33147
Level 4
Level 4

I got it to work, below is an example for those who may use this method in the future.

1- Use the Get Application method to get the XML code that needs to be changed and used in the Make Rest Step.

http://UCCX-IP/adminapi/application/your-uccx-application-that-needs-to-be-associated-with-another-ivr-script

1.png

2- In UCCX Editor - Make Rest Call Step, use the above URL in the URL Field.

2.png

 

3- In the Body field, here where to add the updated XML (the xml that has the new script to be associated with the uccx application). All what you need to do is to paste the code you get in Step #1 updated with the new IVR script. Here make sure to eliminate all spaces, all code should be on the same line.

 

Regards,

Lara

 

 

 

Hi Lara, 

 

I tried the steps that you said before but without success.

Coud you please share the aef script? 

 

I've created de script with Make REST Call just as you told.

I have a UCCX running 11.6 version. 

 

Thanks

Hello Leonardo,

Here you go.

hope it helps. Let me know how it goes.

regards,

i tried your steps, but it is not working, did a reactive debug and it is going to unsuccessful branch

Not sure if your code does this - but be aware that SOAP 1.1 requires the SOAPAction header

While SOAP 1.2 does not.

That MIGHT be why it worked for you on SOAPUI.

I would review using wireshark etc.

 

https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383534

 

 

POST /StockQuote HTTP/1.1
Host: www.stockquoteserver.com
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn
SOAPAction: "Some-URI"

 

Gerry