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

UCCX Using Api

systempause
Level 1
Level 1

Hello ,

 

i am using uccx api to change application paramatres ;

 

first getting application info with using ;

 

https://developer.cisco.com/docs/contact-center-express/#!get-application-with-script-parameters

 

then modifiying some parametres with using ;

 

https://developer.cisco.com/docs/contact-center-express/#!modify-application

 

The issue is when changing some parameters with api uccx return 200 htpp(success) but obviously when i look at the application that action is not affecting application ..

 

i need to refresh the application manually after changing some parameters with using api to see changes..

 

is there any api to refresh the application or is there any way to solve this problem ?

 

System version: 11.6.2.10000-38 (ES02-28)

 

Regards,

 

 

 

 

 

3 Replies 3

Hi there,

As you mentioned there is no dedicated API to update the Application once you change parameters. But what I've noticed, the application reacts (once updated) on the value enabled, here is the sample app description in JSON

{
    "self": "https://uccx1.dcloud.cisco.com/adminapi/application/Customer_Service_Main",
    "ScriptApplication": {
        "script": "SCRIPT[Main_2018.aef]",
        "scriptParams": [
            {
                "name": "Acct_num",
                "value": "\"\"",
                "type": "java.lang.String"
            }
        ]
    },
    "id": "2",
    "applicationName": "Customer_Service_Main",
    "type": "Cisco Script Application",
    "description": "Customer_Service_Main",
    "maxsession": 5,
    "enabled": "true"
}

Maybe you can try the update the parameters into steps. First try - with enabled set to false, Second attempt with enabled set to true. In both cases set the app params to the requested values. I didn't try it but it's worth to try.

Marek
Web: https://gaman-gt.com

Anthony Holloway
Cisco Employee
Cisco Employee

Just like Marek mentioned, when I update an app param via API (GET then PUT) the application is refreshed and the new value takes affect immediately.

 

To test this, I created a simple script which plays back a number to me, then I updated it via API (GET+PUT), then called it, and the new number was read back to me.  I never needed to refresh the app.  I'm also running 11.6(2)ES2.

 

int my_number = 0, parameter
Start
Accept (--Triggering Contact--)
Play Prompt (--Triggering Contact--, N[my_number])
Terminate (--Triggering Contact--)
End

Thanks for your replies !

 

Acctually , i tired a lot of times and it seems sometimes it is not working properly... i change my way and i use documents(transform some param and upload document and use same doc in  another scrpit.) create,update doc. is always works properly and according my project i use it...