Modify Application

HTTPS Method

PUT

URI

https://<server>/adminapi/application/{applicationName}

Example URI

https://uccx-server/adminapi/application/application1

Content Type

Application/XML, Application/JSON

HTTPS Success Code

200

HTTPS Failure Codes

400

401, 403, 405, 412, 500

Error Codes

Success Response

HTTPS/1.1 200 OK

Sample Request


<application>
	<ScriptApplication>
		<script>SCRIPT[ICDSystemTestScriptCS7.aef]</script>
		<scriptParams>
			<name>QueuePrompt</name>
			<value>SP[ICD\ICDQueue.wav]</value>
			<type>com.cisco.prompt.Playable</type>
		</scriptParams>
		<scriptParams>
             <name>CCCalendar</name>
             <value>TeamCalendar</value>
             <type>com.cisco.cccalendar.CCCalendar</type>
		</scriptParams>
	</ScriptApplication>
	<id>19</id>
	<applicationName>ICDSystemApp7</applicationName>
	<type>Cisco Script Application</type>
	<description>ICDSystemApp7_modified</description>
	<maxsession>100</maxsession>
	<enabled>true</enabled>
</application>
<application>
	<ScriptApplication>
		<script>SCRIPT[ICDSystemTestScriptCS7.aef]</script>
		<scriptParams>
			<name>QueuePrompt</name>
			<value>SP[ICD\ICDQueue.wav]</value>
			<type>com.cisco.prompt.Playable</type>
		</scriptParams>
		<scriptParams>
		</scriptParams>
	</ScriptApplication>
	<id>19</id>
	<applicationName>ICDSystemApp7</applicationName>
	<type>Cisco Script Application</type>
	<description>ICDSystemApp7_modified</description>
	<maxsession>100</maxsession>
	<enabled>true</enabled>
</application>

Sample Request with ivrSurveyName

<application>
        <ScriptApplication>
            <script>SCRIPT[icd_wxm.aef]</script>
            <ivrSurveyName>survey1</ivrSurveyName>
        </ScriptApplication>
        <id>19</id>
        <applicationName>WXMIVR_APP</applicationName>
        <type>Cisco Script Application</type>
        <description>icd</description>
        <maxsession>10</maxsession>
        <enabled>true</enabled>
</application>

Sample Request with dispatchId

<application>
        <ScriptApplication>
            <script>SCRIPT[icd_wxm.aef]</script>
            <dispatchId>survey2</dispatchId>
        </ScriptApplication>
        <id>19</id>
        <applicationName>WXM_APP</applicationName>
        <type>Cisco Script Application</type>
        <description>icd</description>
        <maxsession>10</maxsession>
        <enabled>true</enabled>
</application>

Sample Request with dispatchId and Script Parameters

<application>
	<ScriptApplication>
		<script>SCRIPT[WXM_EmailSurvey.aef]</script>
		<scriptParams>
		<name>CSQ</name>
		<value>"csq1"</value>
		<type>java.lang.String</type>
		</scriptParams>
		<scriptParams>
		<name>customer_Id</name>
		<value>"Michael Littlefoot"</value>	
		<type>java.lang.String</type>
		</scriptParams>
		<scriptParams>
		<name>customer_email</name>
		<value>"username@example.com"</value>
		<type>java.lang.String</type>
		</scriptParams>
		<dispatchId>5e7c75d2cb93e80e60b31a24</dispatchId>
	</ScriptApplication>
	<id>1212</id>
	<applicationName>Complaints</applicationName>
	<type>Cisco Script Application</type>
	<description>Complaints</description>
	<maxsession>10</maxsession>
	<enabled>true</enabled>
</application>