Create Application

HTTPS Method

POST

URI

https://<server>/adminapi/application

Example URI

https://uccx-server/adminapi/application

Content Type

Application/XML, Application/JSON

HTTPS Success Code

201

HTTPS Failure Code

400, 500

401, 405, 412

Error Codes

Success Response

HTTPS/1.1 201 Created

Sample Request

<application>
    <ScriptApplication>
        <script>SSCRIPT[icd.aef]</script>
        <scriptParams>
            <name>CSQ</name>
            <value>&quot;VoiceCSQ&quot;</value>
            <type>java.lang.String</type>
        </scriptParams>
    </ScriptApplication>
    <id>4</id>
    <applicationName>App</applicationName>
    <type>Cisco Script Application</type>
    <description>App Desc</description>
    <maxsession>10</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>