174
Cisco Unified Contact Center Express Developer Guide, Release 10.5 First Published: June 11, 2014 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883

Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5First Published: June 11, 2014

Americas HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706USAhttp://www.cisco.comTel: 408 526-4000 800 553-NETS (6387)Fax: 408 527-0883

Page 2: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITEDWARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITHTHE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain versionof the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.

NOTWITHSTANDINGANYOTHERWARRANTYHEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS"WITH ALL FAULTS.CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OFMERCHANTABILITY, FITNESS FORA PARTICULAR PURPOSEANDNONINFRINGEMENTORARISING FROMACOURSEOFDEALING, USAGE, OR TRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUTLIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERSHAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, networktopology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentionaland coincidental.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http://www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnershiprelationship between Cisco and any other company. (1110R)

© 2014 Cisco Systems, Inc. All rights reserved.

Page 3: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

C O N T E N T S

P r e f a c e Preface xi

Change History xi

About This Guide xii

Audience xii

Related Documents xii

Documentation and Support xii

Documentation Feedback xii

C H A P T E R 1 Cisco Unified Contact Center Express Configuration APIs 1

Introduction 1

C H A P T E R 2 System Configuration APIs 5

Agent Statistics 6

Data Structure for Agent Statistics 6

Get Agent Statistics 6

Application 7

Data Structure for Application 7

Data Structure for ICMPostRouting 8

Data Structure for ICMTranslationRouting 8

Data Structure for ScriptApplication 9

Get List of Applications 9

Get Application 10

Create Application 11

Modify Application 11

Delete Application 12

Area Code 12

Data Structure for Area Code 12

Cisco Unified Contact Center Express Developer Guide, Release 10.5 iii

Page 4: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get List of Area Codes 13

Get Area Code 14

Create Area Code 14

Modify Area Code 15

Delete Area Code 15

Call Control Group 16

Data Structure for Call Control Group 16

Data Structure for Port Group Configuration Type 18

Simple Data Structure used in Call Control Group 23

Data Structure for Call Control Group Job Status 25

Get List of Call Control Groups 25

Get Call Control Group 26

Create Call Control Group 29

Modify Call Control Group 32

Delete Call Control Group 34

Check Status of POST/PUT/DELETE 35

Campaign 36

Data Structure for Campaign 36

Common Data Structure for IVR-Based and Agent-Based Campaigns 38

Common Data Structure for Outbound IVR - Progressive and Predictive Campaigns 39

Data Structure for Outbound IVR - Predictive Campaign 40

Data Structure for Preview Campaign 40

Common Data Structure for Outbound Agent - Progressive and Predictive Campaigns 41

Data Structure for Outbound Agent - Predictive Campaign 42

Get List of Campaigns 43

Get Campaign 44

Create Campaign 45

Modify Campaign 50

Delete Campaign 55

Modify Campaign State 56

Campaign Contacts 56

Data Structure for Campaign Contacts 56

Get List of Pending Contacts for Campaign 57

Get List of Pending Contacts for Campaign with Specific Call Status 58

Add Contacts to Campaign 59

Cisco Unified Contact Center Express Developer Guide, Release 10.5iv

Contents

Page 5: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Delete All Contacts from Campaign 60

Chat Widget 60

Data Structure for Chat Widget 61

Simple Data Structure and Elements That Are Used in Chat Widget 63

Create Chat Widget 63

Get List of Chat Widgets 64

Get Chat Widget (XML) 65

Get Chat Widget (HTML) 66

Modify Chat Widget 67

Delete Chat Widget 68

Contact Service Queue 69

CSQ Data Structure 69

Skill or Resource Group Data Structure 71

Skill Competency Data Structure 71

Skill Details Data Structure 72

Resource Group Lists Data Structure 72

Resource Order Data Structure 73

Get List of CSQs 73

Get CSQ 74

Create CSQ 75

Modify CSQ 76

Delete CSQ 77

Data Source 78

Data Structure for Data Source 78

Get List of Data Sources 79

Get Data Source 80

Create Data Source 80

Modify Data Source 81

Delete Data Source 81

Test Connection for Data Source 82

Dialog Group 82

Data Structure for Dialog Group 83

Get List of Dialog Groups 84

Get Dialog Group 84

Create Dialog Group 85

Cisco Unified Contact Center Express Developer Guide, Release 10.5 v

Contents

Page 6: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Modify Dialog Group 85

Delete Dialog Group 86

Files (Script, Prompt, Grammar, and Document) 86

Data Structure for Files 87

Create a New Language for Prompt 88

Create a New Language for Document 88

Create a New Language for Grammar 89

Create a New Folder for Script 90

Create a New Folder for Prompt 90

Create a New Folder for Document 91

Create a New Folder for Grammar 92

Upload Files to a Temporary Folder for Script 92

Upload Files to a Temporary Folder for Prompt 93

Upload Files to a Temporary Folder for Document 93

Upload Files to a Temporary Folder for Grammar 94

Store Files in Database from a Temporary Folder for Script 94

Store Files in Database from a Temporary Folder for Prompt 95

Store Files in Database from a Temporary Folder for Document 96

Store Files in Database from a Temporary Folder for Grammar 96

Get List for Script Files and Folder 97

Get List for Prompt Files and Folder 98

Get List for Grammar Files and Folder 98

Get List for Document Files and Folder 99

Get Script Files and Folder 99

Get Prompt Files and Folder 100

Get Grammar Files and Folder 101

Get Document Files and Folder 101

Get FreeSpace and UsedSpace for Script/Prompt/Grammar/Document 102

Download Script/Prompt 103

Modify Script Folder Name 103

Modify File 104

Modify Prompt Folder Name or Language Name 105

Modify Grammar Folder Name or Language Name 105

Modify Document Folder Name or Language Name 106

Delete Script Files and Folder 107

Cisco Unified Contact Center Express Developer Guide, Release 10.5vi

Contents

Page 7: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Delete Prompt Files and Folder 108

Delete Grammar Files and Folder 108

Delete Document Files and Folder 109

HTTP Trigger 109

Data Structure for HTTP Trigger 110

Get List of HTTP Triggers 111

Get HTTP Trigger 112

Create HTTP Trigger 113

Modify HTTP Trigger 113

Delete HTTP Trigger 113

Recording Configuration 114

Data Structure for Recording Configuration 114

Get Recording Configuration Information 115

Modify Recording Configuration Information 115

Resource 116

Data Structure for Resource 116

Get List of Resources 118

Get Resource 119

Modify Resource 120

Resource Group 120

Data Structure for Resource Group 121

Get List of Resource Groups 121

Get Resource Group 122

Create Resource Group 122

Modify Resource Group 123

Delete Resource Group 123

Skill 124

Data Structure for Skill 124

Get List of Skills 124

Get Skill 125

Create Skill 126

Modify Skill 126

Delete Skill 127

Team 127

Data Structure for Team 128

Cisco Unified Contact Center Express Developer Guide, Release 10.5 vii

Contents

Page 8: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get List of Teams 128

Get Team 129

Create Team 129

Modify Team 130

Delete Team 131

Trigger 131

Trigger Data Structure 131

Simple Data Structure and Elements Used in Trigger 134

Complex Data Structure Defined for forwardBusy 136

Create a New Trigger 136

Get a Trigger by Directory Number 137

Get list of triggers 137

Modify a Trigger by ID 138

Delete a Trigger by ID 138

TTS Provider 139

Data Structure for TTS Provider 139

Get list of TTS Providers 139

Get a TTS Provider 140

Create TTS Provider 140

Modify TTS Provider 141

Delete TTS Provider 142

TTS Server 142

Data Structure for TTS Server 142

Get list of TTS Servers 143

Get a TTS Server 144

Create TTS Server 145

Modify TTS Server 146

Delete TTS Server 146

DB Purge Schedule Configuration 147

Data Structure for DB Purge Schedule Configuration 147

Get Purge Configuration Information 147

Update Purge Configuration Information 148

DB Purge Now Configuration 148

Data Structure for DB Purge Now Configuration 149

Update Purge Now Configuration 149

Cisco Unified Contact Center Express Developer Guide, Release 10.5viii

Contents

Page 9: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DB Purge Configuration Status 149

Data Structure for DB Purge Configuration Status 150

Get Purge Configuration Status 150

Outbound General Configuration 151

Data Structure for Outbound General Configuration 151

Get List of Skills for Outbound General Configuration 153

Modify Outbound General Configuration 154

Sip Gateway Configuration 154

Data Structure for Sip Gateway Configurations 155

Get List of Sip Gateway Configurations 156

Update SIP Gateway Configurations 157

A P P E N D I X A Cisco Finesse Desktop and Configuration APIs 159

A P P E N D I X B Cisco SocialMiner APIs 161

Cisco Unified Contact Center Express Developer Guide, Release 10.5 ix

Contents

Page 10: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5x

Contents

Page 11: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Preface

• Change History, page xi

• About This Guide, page xii

• Audience, page xii

• Related Documents, page xii

• Documentation and Support, page xii

• Documentation Feedback, page xii

Change HistoryDateSeeChange

Initial release ofdocument for 10.5(1)• Updated the data structure for Get List

of Campaigns, on page 43.

• Updated the data structure for CreateCampaign, on page 45.

• Updated the data structure for ModifyCampaign, on page 50.

• Updated the data structure for CommonData Structure for Outbound Agent -Progressive and Predictive Campaigns,on page 41.

Updated the Agent OutboundProgressive and Predictive featurefor data structures and REST APImethods.

Initial release ofdocument for 10.5(1)

Updated "Data Structure for PortGroup Configuration Type" to addE.164 support.

Initial release ofdocument for 10.5(1)

Updated Chat Widget, on page 60.Added new fields and updatedsample XMLs and successresponses in the chat section.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 xi

Page 12: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DateSeeChange

Initial release ofdocument for 10.5(1)

Updated Data Structure for Port GroupConfiguration Type, on page 18.

Added E.164 support.

April 9, 2014Added “TTS Server” and “TTSProvider” methods.

April 9, 2014Updated the “Files” method withdownload script/prompt and GetFreeSpace and UsedSpace.

About This Guide

Audience

Related Documents

Documentation and SupportTo download documentation, submit a service request, and find additional information, seeWhat's New inCisco Product Documentation at: http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html.

You can also subscribe to theWhat's New in Cisco Product Documentation RSS feed to deliver updatesdirectly to an RSS reader on your desktop. The RSS feeds are a free service. Cisco currently supports RSSVersion 2.0.

Documentation FeedbackTo provide your feedback for this document, send an email to:

mailto:[email protected]

Cisco Unified Contact Center Express Developer Guide, Release 10.5xii

PrefaceAbout This Guide

Page 13: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

C H A P T E R 1Cisco Unified Contact Center ExpressConfiguration APIs

• Introduction, page 1

IntroductionCisco Unified Contact Center Express Configuration APIs offer REST APIs for configuration of UnifiedContact Center Express.

Each object supports five methods (except where documented otherwise) that can be invoked on the URLthat is associated with the object.

The structure of the URL is<protocol>://<uccx-server>/adminapi/<object>/<instanceId>.

DescriptionURL Structure

HTTP and HTTPS are the supported protocols.<protocol>

Routable address (name or IP address) of the UnifiedCCX Server.

<uccx-server>

One of the supported objects.<object>

Optional component needed for GET, DELETE, PUTmethods referring to a specific instance of the object.

<instanceId>

Supported Operations

OutputInputDescriptionURLHTTPMethod

Operation

List of objectsNoneList all theinstance of thisobject

<protocol>://<uccx-server>/adminapi/<object>

GETLIST

Cisco Unified Contact Center Express Developer Guide, Release 10.5 1

Page 14: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

OutputInputDescriptionURLHTTPMethod

Operation

Single objectinstance

NoneGet details ofthe instancesspecified byinstanceId.

<protocol>://<uccx-server>/adminapi/<object><instanceId>

GETGET

URL of the newobject

Newinstancedata

Create a newinstance of theobject.

<protocol>://<uccx-server>/adminapi/<object>

POSTCREATE

NoneModifiedinstancedata

Modify theinstancespecified byinstanceId.

<protocol>://<uccx-server>/adminapi/<object>

PUTMODIFY

NoneNoneDelete theinstancespecified byinstanceId.

<protocol>://<uccx-server>/adminapi/<object>/<instanceId>

DELETEDELETE

All methods support Application/XML and Application/JSON as input MIME types.

You can modify the attributes that you edit in AppAdmin through Rest APIs.Note

Security

The user with administration credentials only on Unified CCX can invoke methods. The API uses BasicAuthentication mechanism of HTTP and the credentials (user ID and password) must be sent with everyrequest in the Authorization header.

If an API operation fails, a detailed error is returned in the HTTP response message body. The error, in XMLformat, is as follows:

<ApiErrors><ApiError><ErrorType>type</ErrorType><ErrorMessage>message</ErrorMessage><ErrorData>data</ErrorData>

</ApiError></ApiErrors>

Unsupported Unicode Noncharacters

REST API does not allow unicode noncharacters in the request because security polices restrict their use.

When you enter unicode noncharacters in the request, an error is returned in the HTTP response messagebody. The error, in XML format, is as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ApiErrors>

Cisco Unified Contact Center Express Developer Guide, Release 10.52

Cisco Unified Contact Center Express Configuration APIsIntroduction

Page 15: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<ApiError><ErrorType>InvalidInput</ErrorType><ErrorMessage>The attempted action violates security policies because of invalid

input.</ErrorMessage><ErrorData></ErrorData>

</ApiError></ApiErrors>

Failure Response Codes

The failure response codes for Unified CCX REST APIs are listed here:

• 400 Bad Request

• 401 Unauthorized

• 403 Forbidden

• 404 Not Found

• 405 Method Not Allowed

• 409 Conflict

• 500 Internal Server Error

• 503 Service Unavailable

CORS

Cross-origin resource sharing (CORS) is supported that allows you to place requests to configuration APIsfrom any origin.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 3

Cisco Unified Contact Center Express Configuration APIsIntroduction

Page 16: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.54

Cisco Unified Contact Center Express Configuration APIsIntroduction

Page 17: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

C H A P T E R 2System Configuration APIs

• Agent Statistics, page 6

• Application, page 7

• Area Code, page 12

• Call Control Group, page 16

• Campaign, page 36

• Campaign Contacts, page 56

• Chat Widget, page 60

• Contact Service Queue, page 69

• Data Source, page 78

• Dialog Group, page 82

• Files (Script, Prompt, Grammar, and Document), page 86

• HTTP Trigger, page 109

• Recording Configuration, page 114

• Resource, page 116

• Resource Group, page 120

• Skill, page 124

• Team, page 127

• Trigger, page 131

• TTS Provider, page 139

• TTS Server, page 142

• DB Purge Schedule Configuration, page 147

• DB Purge Now Configuration, page 148

• DB Purge Configuration Status, page 149

• Outbound General Configuration, page 151

Cisco Unified Contact Center Express Developer Guide, Release 10.5 5

Page 18: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

• Sip Gateway Configuration, page 154

Agent StatisticsAgentstats provides reports about the resources.

Data Structure for Agent StatisticsDescriptionRestrictionsBase TypeAttribute Name

Number of resources currently logged in.—unsignedIntloggedIn

Number of resources currently ready.—unsignedIntready

Number of resources currently not ready.—unsignedIntnotReady

Number of resources currently talking.—unsignedInttalking

Get Agent StatisticsGETHTTP Method

http://<server>/adminapi/agentstatsURI

http://uccx-server/adminapi/agentstatsExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><agentStats ><loggedIn>0</loggedIn><ready>0</ready><notReady>0</notReady><talking>0</talking>

</agentStats>

Cisco Unified Contact Center Express Developer Guide, Release 10.56

System Configuration APIsAgent Statistics

Page 19: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

ApplicationApplication provides information about the application.

Data Structure for ApplicationDescriptionRestrictionsBase TypeAttribute Name

Type of scriptNoneICMPostRouting(choice)

ICMPostRouting

Type of scriptNoneICMTranslationRouting(choice)

ICMTranslationRouting

Type of scriptNoneScriptApplication(choice)

ScriptApplication

Numeric identifier of theapplication

0 to 65535(mandatory,unique)

intid

Name that uniquely identifiesthe application

max length = 30(mandatory,unique)

min length = 1

Application namecontains alphanumericcharacters, specialcharacters, spaces,underscores (_), andhyphens (-) withoutleading or trailing whitespaces.

applicationNameapplicationName

Maximum number of sessions1 to 2147483647(mandatory )

intmaxsession

true | false (mandatory)stringenabled

Cisco Unified Contact Center Express Developer Guide, Release 10.5 7

System Configuration APIsApplication

Page 20: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for ICMPostRoutingDescriptionRestrictionsBase TypeAttribute

Initial script of the Unified CCX postroutingapplication.

Example for system script:<initialScript>aa.aef</initialScript>

Examples for user script:<initialScript>SCRIPT[user.aef]</initialScript>

<initialScript>SCRIPT[/user/user.aef]</initialScript>

NoneStringinitialScript

Time in milliseconds that the system waitsbefore it rejects the request for the application.

1 to 2147483647Integertimeout

Default script of the Unified CCX postroutingapplication.

Example for system script:<defaultScript>aa.aef</defaultScript>

Examples for user script:<defaultScript>SCRIPT[user.aef]</defaultScript>

<defaultScript>SCRIPT[/user/user.aef]</defaultScript>

NoneStringdefaultScript

Data Structure for ICMTranslationRoutingDescriptionRestrictionsBase TypeAttribute

Time in milliseconds that the system waitsbefore it rejects the request for the application.

1 to 2147483647Integertimeout

Default script of the Unified CCX postroutingapplication.

Example for system script:<defaultScript>aa.aef</defaultScript>

Examples for user script:<defaultScript>SCRIPT[user.aef]</defaultScript>

<defaultScript>SCRIPT[/user/user.aef]</defaultScript>

NoneStringdefaultScript

Cisco Unified Contact Center Express Developer Guide, Release 10.58

System Configuration APIsData Structure for ICMPostRouting

Page 21: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for ScriptApplicationDescriptionRestrictionsBase TypeAttribute

For system script, specify the script.

Example for system script:<script>aa.aef</script>

For user script, specify the script with therelative path.

Examples for user script:<script>SCRIPT[user.aef]</script>

<script>SCRIPT[/user/user.aef]</script>

MandatoryStringscript

Default script of the Unified CCX postroutingapplication.

Example for system script:<defaultScript>aa.aef</defaultScript>

Examples for user script:<defaultScript>SCRIPT[user.aef]</defaultScript>

<defaultScript>SCRIPT[/user/user.aef]</defaultScript>

NoneStringdefaultScript

Parameters of the script.NoneVariablescriptParams

Parameters of the default script.NoneVariabledefaultScriptParams

Get List of ApplicationsGETHTTP Method

http://<server>/adminapi/applicationURI

http://uccx-server/adminapi/applicationExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 9

System Configuration APIsData Structure for ScriptApplication

Page 22: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><applications><application><self>https://uccx-server/adminapi/application/Auto_Sanity_App_ICD</self><id>0</id><applicationName>Auto_Sanity_App_ICD</applicationName><type>Cisco Script Application</type><description>Automated test application</description><maxsession>10</maxsession><enabled>true</enabled></application><application><self>https://uccx-server/adminapi/application/Auto_Sanity_App_AA</self><id>1</id><applicationName>Auto_Sanity_App_AA</applicationName><type>Cisco Script Application</type><description>Automated test application for AA</description><maxsession>10</maxsession><enabled>true</enabled></application><application><self>https://uccx-server/adminapi/application/Auto_Application</self><id>2</id><applicationName>Auto_Application</applicationName><type>Cisco Script Application</type><description>Automated test application</description><maxsession>10</maxsession><enabled>true</enabled></application></applications>

Get ApplicationGETHTTP Method

http://<server>/adminapi/application/{applicationName}URI

http://uccx-server/adminapi/application/application1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><application><self>https://uccx-server/adminapi/application/Auto_Sanity_App_AA</self><ScriptApplication><script>aa.aef</script></ScriptApplication><id>1</id><applicationName>Auto_Sanity_App_AA</applicationName><type>Cisco Script Application</type><description>Automated test application for AA</description>

Cisco Unified Contact Center Express Developer Guide, Release 10.510

System Configuration APIsGet Application

Page 23: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<maxsession>10</maxsession><enabled>true</enabled></application>

Create ApplicationPOSTHTTP Method

http://<server>/adminapi/applicationURI

http://uccx-server/adminapi/applicationExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 412HTTP Failure Code

—Error Codes

Success Response

HTTP/1.1 201 Created

Modify ApplicationPUTHTTP Method

http://<server>/adminapi/application/{applicationName}URI

http://uccx-server/adminapi/application/application1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 412HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Cisco Unified Contact Center Express Developer Guide, Release 10.5 11

System Configuration APIsCreate Application

Page 24: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Delete ApplicationDELETEHTTP Method

http://<server>/adminapi/application/{applicationName}URI

http://uccx-server/adminapi/application/application1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405, 412HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Area CodeThe area code determines the geographical location of the phone number you dial, which provides theGreenwich Meridian Time (GMT) zone. The db_cra database contains a mapping of the area codes to thetime zones. The U.S. area code mappings are provided along with the product. International customers shouldprovide their own data and add it to the database.

Data Structure for Area CodeDescriptionRestrictionsBase TypeAttribute Name

The area code of the callminlength = 1

maxlength = 10

occurrences = 1

The valid characters forthis field are “\d+”.

stringareaCode

Uses the same data as that ofgmtzone

minOccurs = 1

maxOccurs = 1

intregion

Cisco Unified Contact Center Express Developer Guide, Release 10.512

System Configuration APIsDelete Application

Page 25: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Daylight Savings Timeminoccurs = 0

maxOccurs = 1

Default = False

Any value other than“True ” is considered asFalse.

booleandst

Get List of Area CodesGETHTTP Method

http://<server>/adminapi/areaCodeURI

http://uccx-server/adminapi/areaCodeExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><areaCodes><areaCode><self>https://uccx-server/adminapi/areaCode/219</self><areacode>219</areacode><regioncode>158</regioncode><dst>false</dst></areaCode><areaCode><self>https://uccx-server/adminapi/areaCode/615</self><areacode>615</areacode><regioncode>92</regioncode><dst>true</dst></areaCode><areaCode><self>https://uccx-server/adminapi/areaCode/607</self><areacode>607</areacode><regioncode>158</regioncode><dst>true</dst></areaCode></areaCodes>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 13

System Configuration APIsGet List of Area Codes

Page 26: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get Area CodeGETHTTP Method

http://<server>/adminapi/areaCode/{areacode}URI

http://uccx-server/adminapi/areaCode/760Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><areaCode><self>https://uccx-server/adminapi/areaCode/219</self><areaCode>219</areaCode><regioncode>158</regioncode><dst>false</dst></areaCode>

Create Area CodePOSTHTTP Method

http://<server>/adminapi/areacodeURI

http://uccx-server/adminapi/areacodeExample URI

Application/XML, Application/JSONContent Type

201HTTP Success code

401, 405, 409HTTP Failure Codes

ConfigNotFoundException

SQLException

Error Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.514

System Configuration APIsGet Area Code

Page 27: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—POST

<?xml version="1.0" encoding="UTF-8"?><AreaCode><self>http://uccx-server/adminapi/areacode</self><areacode>9111</areacode><regioncode>140</regioncode><dst>true</dst>

</AreaCode>

Modify Area CodePUTHTTP Method

http://<server>/adminapi/areacode/{areacode}URI

http://uccx-server/adminapi/areacode/760Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

Sample Input XML—PUT

<?xml version="1.0" encoding="UTF-8"?><AreaCode><self>https://uccx-server/adminapi/areaCode/</self><areacode>9111</areacode><regioncode>140</regioncode><dst>false</dst>

</AreaCode>

Delete Area CodeDELETEHTTP Method

http://<server>/adminapi/areacode/{areacode}URI

http://uccx-server/adminapi/areacode/760Example URI

Cisco Unified Contact Center Express Developer Guide, Release 10.5 15

System Configuration APIsModify Area Code

Page 28: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

200HTTP Success code

401, 404, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response

HTTP/1.1 200 OK

Call Control GroupCall Control Group allows you to control the use of CTI ports. Unified CCX uses Unified CM Telephony callcontrol groups to pool together a series of CTI ports, which the system uses to serve calls as they arrive fromthe Unified CCX server. You can create multiple Unified CM Telephony call control groups to share andlimit the resources to be used by specific applications. You can reserve more ports for higher-priorityapplications or provide access to fewer ports for applications with less traffic.

Data Structure for Call Control GroupDescriptionRestrictionsBase TypeAttribute Name

Unique identifier for the CallControl Group.

minOccurs = 0

maxOccurs = 1

nillable = false

intid

Description of the Call ControlGroup.

minOccurs = 1

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 30

Description containsalphanumeric characters andcan have white space betweencharacters.

stringdescription

Cisco Unified Contact Center Express Developer Guide, Release 10.516

System Configuration APIsCall Control Group

Page 29: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Number of CTI ports that areassigned to the Call ControlGroup.

minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1

maxLength = 65535

intnumOfCTIPorts

Checks for the inbound oroutbound group that isassociated with the Call ControlGroup.

minOccurs = 1

maxOccurs = 1

nillable = false

default = false

booleanoutboundGroup

Enables auto creation of mediatermination groups.

minOccurs = 1

maxOccurs = 1

nillable = false

default = false

booleanmediaTerminationSupport

Prefixed to the name that will begiven to all of the CTI ports inthe group.

minOccurs = 1

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 5

Device name prefix containsalphanumeric characters,underscores (_), hyphens (-),and periods (.) withoutleading or trailing whitespaces.

stringdeviceNamePrefix

Cisco Unified Contact Center Express Developer Guide, Release 10.5 17

System Configuration APIsData Structure for Call Control Group

Page 30: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for Port Group Configuration TypeDescriptionRestrictionsBase TypeAttribute Name

IP address or domainname.

minOccurs = 0

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 255

Hostname containsalphanumericcharacters.

stringhostName

List of CTI portsassigned to the CallControl Group.

minOccurs = 0

maxOccurs = 1

nillable = false

stringlistOfCTIPorts

Specified number ofports are createdstarting from thevalue that is specifiedin this field orstarting from the nextavailable directorynumber.

minOccurs = 1

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 24

Starting directorynumber containsnumerals and canhave asterisk (*) orhash (#) or both as aprefix or a suffix.

To support E.164compliance, UnifiedCCX allows you toadd plus sign (+)before the directorynumber.

stringstartingDirectoryNumber

Set of commonparameters likeregion, location,SRST reference, etcthat can be appliedfor a device.

minOccurs = 1

maxOccurs = 1

nillable = false

CCMCommonObjectNamedevicePool

Cisco Unified Contact Center Express Developer Guide, Release 10.518

System Configuration APIsData Structure for Port Group Configuration Type

Page 31: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Collection ofpartitions that issearched todetermine how toroute a dialednumber.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMCommonObjectNamednCallingSearchSpace

The Cisco UnifiedCommunicationsManager phonelocation settingspecifies the totalbandwidth that isavailable for calls toand from thislocation.

minOccurs = 1

maxOccurs = 1

nillable = false

CCMCommonObjectNamelocation

The partition towhich the DirectoryNumber belongs.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMPartitionNamepartition

Media ResourceGroup List providesa prioritizedgrouping of mediaresource groups.Application choosesthe required mediaresource according tothe priority order thatis defined in a MediaResourceGroup List.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMCommonObjectNamemediaResourceGroupList

List of profilesdefined in the VoiceMail ProfileConfiguration. VoiceMail Profile allowsyou to define anyline-relatedvoice-messaginginformation that isassociated to adirectory number.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMCommonObjectNamevoiceMailProfile

Cisco Unified Contact Center Express Developer Guide, Release 10.5 19

System Configuration APIsData Structure for Port Group Configuration Type

Page 32: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Presence groupcontrols thedestinations that canbe monitored by thewatchers in thegroup.

minOccurs = 1

maxOccurs = 1

nillable = false

CCMCommonObjectNamepresenceGroup

Automated AlternateRouting (AAR)group provides theprefix digits that areused to route callsthat are otherwiseblocked due toinsufficientbandwidth.

minOccurs = 0

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 20

AAR group containsalphanumericcharacters, spaces,underscores (_),hyphens (-), andperiods (.) withoutleading or trailingwhite spaces.

stringAARGroup

Audio source heardby the caller whenthe Unified CCXscript places thecaller on hold.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMHoldAudioSourceNameuserHoldAudioSource

Audio source that isheard by the callerwhen Unified CCXperforms a ConsultTransfer.

minOccurs = 0

maxOccurs = 1

nillable = false

CCMHoldAudioSourceNamenetworkHoldAudioSource

Cisco Unified Contact Center Express Developer Guide, Release 10.520

System Configuration APIsData Structure for Port Group Configuration Type

Page 33: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Call pickup groupallows you to answera call that comes inon a directorynumber other thanyour own.When youhear an incoming callringing on anotherphone, you canredirect the call toyour phone by usingthis feature.

minOccurs = 0

maxOccurs = 1

nillable = false

minLength = 1

maxLength = 24

Call pickup groupcontains numerals(0-9), alphabets(A-D), plus (+),pound (#) andasterisk (*).

Slash (\)must beprecedeplus (+).

Note

stringcallPickUpGroup

Name that isdisplayed during analert to a shareddirectory number.Devices that do notsupport Unicode(internationalized)characters display theAlerting NameASCII field.

minOccurs = 0

maxOccurs = 1

CCMAlertingNameASCIIalertingNameAscii

Cisco Unified Contact Center Express Developer Guide, Release 10.5 21

System Configuration APIsData Structure for Port Group Configuration Type

Page 34: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Collection ofpartitions that aresearched todetermine how aredirected call isrouted.

Redirect CallingSearch Spaceoptions:

• DN CallingSearchSpace—Enablesthe CTI Port touse itsdirectorynumber CSSwhenperforming aredirect /consulttransfer.

• CallingParty—Enablesthe CTI Port touse the callingparty's CSSwhenperforming aredirect /consulttransfer.

• RedirectParty—Enablesthe CTI Port touse the CTIRoute Point'sCSS whenperforming aredirect /consulttransfer.

minOccurs = 1

maxOccurs = 1

nillable = false

CCMRedirectCallingSearchSpaceredirectCallingSearchSpace

Cisco Unified Contact Center Express Developer Guide, Release 10.522

System Configuration APIsData Structure for Port Group Configuration Type

Page 35: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Username or thedirectory number thatis configured.

minOccurs = 1

maxOccurs = 1

minLength = 0

maxLength = 30

Display containsalphanumericcharacters andsymbols except tab(\t;), new line (\n;),double quotationmarks (“), brackets (<>, { }, [ ]), percent(%), and ampersand(&).

stringdisplay

Phone number that isused to send callerID information whena call is placed fromthis line.

minOccurs = 0

maxOccurs = 1

CCMExternalPhoneMaskNumberexternalPhoneMaskNumber

Simple Data Structure used in Call Control GroupDescriptionRestrictionsBase TypeAttribute Name

Data type that is used inUnified CommunicationsManager forAlertingNameASCII.

minLength = 0

maxLength = 30

CCM Alerting NameASCII can include allspecial characters exceptdouble quotation marks("), angle brackets (< >),ampersand (&), andpercent (%).

stringCCMAlertingNameASCII

Cisco Unified Contact Center Express Developer Guide, Release 10.5 23

System Configuration APIsSimple Data Structure used in Call Control Group

Page 36: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Data type that is used inUnified CommunicationsManager forCommonObjectName.

minLength = 1

maxLength = 50

CCMCommonObjectNamecontains alphanumericcharacters, spaces,underscores (_), hyphens(-), and periods (.)without leading ortrailing white spaces.

stringCCMCommonObjectName

Data type that is used inUnified CommunicationsManager forHoldAudioSourceName.

minLength = 1

maxLength = 50

CCMHoldAudioSourceNamecontains numbers from 1to 51 followed by hyphen(-) and alphanumericcharacters with periods(.), hyphens (-),underscores (_) orspaces.

stringCCMHoldAudioSourceName

Data type that is used inUnified CommunicationsManager for PartionName.

minLength = 1

maxLength = 50

CCMPartionNamecontains alphanumericcharacters, spaces,underscores (_), periods(.), and hyphens (-).

stringCCMPartionName

Data type that is used inUnified CommunicationsManager forRedirectCallingSearchSpace.

enumeration = RedirectParty, Calling Party, DNCalling Search Space.

stringCCMRedirectCallingSearchSpace

Data type that is used inUnified CommunicationsManager forCCMExternalPhoneMaskNumber.

minLength = 0

maxLength = 24

CCM external phonemask number containsnumerals (0-9), hashes(#), asterisks (*), and X.

stringCCMExternalPhoneMaskNumber

Cisco Unified Contact Center Express Developer Guide, Release 10.524

System Configuration APIsSimple Data Structure used in Call Control Group

Page 37: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for Call Control Group Job StatusDescriptionRestrictionsBase TypeAttribute Name

Total number of CTI ports.minOccurs = 1

maxOccurs = 1

nillable = false

inttotalPorts

Total number of updated ports.minOccurs = 1

maxOccurs = 1

nillable = false

intupdatePorts

The last-updated port.minOccurs = 1

maxOccurs = 1

nillable = false

stringlastUpdatedPort

Job type—Creation, deletion, modification.minOccurs = 1

maxOccurs = 1

nillable = false

stringtype

Any exception that occurs while performingPOST, PUT, or DELETE.

minOccurs = 1

maxOccurs = 1

nillable = false

stringexception

Job is complete.minOccurs = 1

maxOccurs = 1

nillable = false

booleancompleted

Get List of Call Control GroupsGETHTTP Method

http://<server>/adminapi/callControlGroupURI

http://uccx-server/adminapi/callControlGroupExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 412, 500, 503HTTP Failure Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 25

System Configuration APIsData Structure for Call Control Group Job Status

Page 38: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

—Error Codes

Success Response

For LAN<?xml version="1.0" encoding="UTF-8" standalone="yes"?><callControlGroups>

<callControlGroup><self type="callControlGroup" href="http://uccx-server/adminapi/callControlGroup/102"

rel="self"/><id>102</id><outboundGroup>false</outboundGroup><description>description</description>

<deviceNamePrefix>cti</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts>

<mediaTerminationSupport>false</mediaTerminationSupport></callControlGroup><callControlGroup>

<self type="callControlGroup" href="http://uccx-server/adminapi/callControlGroup/107"rel="self"/>

<id>107</id><outboundGroup>false</outboundGroup>

<deviceNamePrefix>cti</deviceNamePrefix><description>testccg</description>

<numOfCTIPorts>5</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport>

</callControlGroup></callControlGroups>

For WAN<?xml version="1.0" encoding="UTF-8" standalone="yes"?><callControlGroups>

<callControlGroup><self type="callControlGroup" href="http://uccx-server/adminapi/callControlGroup/4"

rel="self"/><id>4</id><outboundGroup>false</outboundGroup><description>sdf</description>

<deviceNamePrefix>cti</deviceNamePrefix><numOfCTIPorts>2</numOfCTIPorts>

<mediaTerminationSupport>false</mediaTerminationSupport></callControlGroup><callControlGroup>

<self type="callControlGroup" href="http://uccx-server/adminapi/callControlGroup/2"rel="self"/>

<id>2</id><outboundGroup>false</outboundGroup><description>TEST</description>

<deviceNamePrefix>cti</deviceNamePrefix><numOfCTIPorts>1</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport>

</callControlGroup></callControlGroups>

Get Call Control GroupGETHTTP Method

http://<server>/adminapi/callControlGroup/{id}URI

http://uccx-server/adminapi/callControlGroup/12Example URI

Cisco Unified Contact Center Express Developer Guide, Release 10.526

System Configuration APIsGet Call Control Group

Page 39: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 412, 500, 503HTTP Failure Codes

—Error Codes

Success Response

For LAN<?xml version="1.0" encoding="UTF-8" standalone="yes"?><callControlGroup>

<self href="http://uccx-server/adminapi/callControlGroup/107" rel="self"type="callControlGroup"/>

<id>107</id><outboundGroup>false</outboundGroup><description>testccg</description>

<deviceNamePrefix>testc</deviceNamePrefix><numOfCTIPorts>5</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<listOfCTIPorts>testc_68900,testc_68907,testc_68908,testc_68909,testc_68910,testc_68911,testc_68912,testc_68913,testc_68914,testc_68915</listOfCTIPorts>

<startingDirectoryNumber>68900</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii></alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display></display><externalPhoneMaskNumber></externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

For WAN—When CTI ports are configured for the both nodes<?xml version="1.0" encoding="UTF-8" standalone="yes"?><callControlGroup>

<self href="http://uccx-server/adminapi/callControlGroup/12" rel="self"type="callControlGroup"/>

<id>2</id><outboundGroup>false</outboundGroup><description>TEST</description>

<deviceNamePrefix>VISH1</deviceNamePrefix><numOfCTIPorts>1</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration><hostName>ccx-94-80</hostName><listOfCTIPorts>VISH1_1000</listOfCTIPorts><startingDirectoryNumber>1000</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 27

System Configuration APIsGet Call Control Group

Page 40: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii></alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display></display><externalPhoneMaskNumber></externalPhoneMaskNumber>

</portGroupConfiguration><portGroupConfiguration>

<hostName>ccx-94-81</hostName><listOfCTIPorts>VISH1_576</listOfCTIPorts><startingDirectoryNumber>576</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii></alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display></display><externalPhoneMaskNumber></externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

For WAN—When CTI ports are configured for only one node<?xml version="1.0" encoding="UTF-8" standalone="yes"?><callControlGroup>

<self href="http://uccx-server/adminapi/callControlGroup/12" rel="self"type="callControlGroup"/>

<id>2</id><outboundGroup>false</outboundGroup><description>TEST</description><deviceNamePrefix>VISH1</deviceNamePrefix><numOfCTIPorts>1</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>ccx-94-80</hostName><listOfCTIPorts>VISH1_1000</listOfCTIPorts><startingDirectoryNumber>1000</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii></alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display></display><externalPhoneMaskNumber></externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

Cisco Unified Contact Center Express Developer Guide, Release 10.528

System Configuration APIsGet Call Control Group

Page 41: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Create Call Control GroupPOSTHTTP Method

http://<server>/adminapi/callControlGroupURI

http://uccx-server/adminapi/callControlGroupExample URI

Application/XML, Application/JSONContent Type

201, 202, 206HTTP Success Code

400, 401, 404, 405, 412, 415, 500, 503HTTP Failure Codes

—Error Codes

Sample Input XML—Create a New Call Control Group in WAN with All Parameters (POST) to Configure CTIPorts on Both Nodes<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c11</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 29

System Configuration APIsCreate Call Control Group

Page 42: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

Sample Input XML — Create a New Call Control Group in WAN with All Parameters (POST) to Configure CTIPorts on One Node<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c11</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

Sample Input XML—Create a New Call Control Group in WAN with Default Parameters (POST) to ConfigureCTI Ports on Both Nodes<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c1</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><hostName>ccx-94-80</hostName>

</portGroupConfiguration><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception>

Cisco Unified Contact Center Express Developer Guide, Release 10.530

System Configuration APIsCreate Call Control Group

Page 43: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<hostName>ccx-94-81</hostName></portGroupConfiguration>

</callControlGroup>

Sample Input XML—Create a New Call Control Group in WAN with Default Parameters (POST) to ConfigureCTI Ports on One Node<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c1</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><hostName>ccx-94-80</hostName>

</portGroupConfiguration></callControlGroup>

Sample Input XML—Create a New Call Control Group in LAN with All Parameters (POST)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c11</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

Sample Input XML—Create a New Call Control Group in LAN with Default Parameters (POST)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c1</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 31

System Configuration APIsCreate Call Control Group

Page 44: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception>

</portGroupConfiguration></callControlGroup>

Modify Call Control GroupPUTHTTP Method

http://<server>/adminapi/callControlGroup/{id}URI

http://uccx-server/adminapi/callControlGroup/12Example URI

Application/XML, Application/JSONContent Type

200, 202, 206HTTP Success Code

400, 401, 404, 405, 412, 500, 503HTTP Failure Codes

—Error Codes

Sample Input XML—Modify Common Parameters of an Existing Call Control Group in WAN when CTI Portsare Configured for Both Nodes (PUT)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><id>7</id>

<outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>mod1</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>true</mediaTerminationSupport><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>false</requireDTMFReception><hostName>ccx-94-80</hostName>

</portGroupConfiguration><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>mod_DP</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><hostName>ccx-94-81</hostName>

</portGroupConfiguration></callControlGroup>

Cisco Unified Contact Center Express Developer Guide, Release 10.532

System Configuration APIsModify Call Control Group

Page 45: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Modify Node-Specific Parameters of an Existing Call Control Group for One Node inWAN when CTI Ports are Created for Both Nodes (PUT)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><id>7</id>

<outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>mod1</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>true</mediaTerminationSupport><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>false</requireDTMFReception><hostName>ccx-94-80</hostName>

</portGroupConfiguration></callControlGroup>

Sample Input XML—Modify an Existing Call Control Group in WAN with All Parameters (PUT)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><id>5</id>

<outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>c11</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>mod_De</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>Mod_Part</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>Default</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>Mod_Part</partition><mediaResourceGroupList>Mod_MRGL</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 33

System Configuration APIsModify Call Control Group

Page 46: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<externalPhoneMaskNumber>12345</externalPhoneMaskNumber></portGroupConfiguration>

</callControlGroup>

Sample Input XML—Modify an Existing Call Control Group in LAN with All Parameters (PUT)<?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><id>23</id><outboundGroup>false</outboundGroup>

<description>description</description><deviceNamePrefix>c11</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<hostName>hostName1</hostName><startingDirectoryNumber>100012</startingDirectoryNumber><devicePool>ModDevPool</devicePool><dnCallingSearchSpace>None</dnCallingSearchSpace><location>Hub_None</location><partition>None</partition><mediaResourceGroupList>None</mediaResourceGroupList><voiceMailProfile>None</voiceMailProfile><presenceGroup>Standard Presence group</presenceGroup><AARGroup>None</AARGroup><userHoldAudioSource>None</userHoldAudioSource><networkHoldAudioSource>None</networkHoldAudioSource><callPickUpGroup>None</callPickUpGroup><alertingNameAscii>alteringNameAscii</alertingNameAscii><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception><display>display</display><externalPhoneMaskNumber>12345</externalPhoneMaskNumber>

</portGroupConfiguration></callControlGroup>

Sample Input XML—Modify an Existing Call Control Group in LAN with Default Parameters (PUT)<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?><callControlGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/callControlGroup.xsd"><id>24</id>

<outboundGroup>false</outboundGroup><description>description</description><deviceNamePrefix>mod</deviceNamePrefix><numOfCTIPorts>10</numOfCTIPorts><mediaTerminationSupport>false</mediaTerminationSupport><portGroupConfiguration>

<startingDirectoryNumber>999001</startingDirectoryNumber><devicePool>Default</devicePool><location>Hub_None</location><presenceGroup>Standard Presence group</presenceGroup><redirectCallingSearchSpace>Redirect Party</redirectCallingSearchSpace><requireDTMFReception>true</requireDTMFReception>

</portGroupConfiguration></callControlGroup>

Delete Call Control GroupDELETEHTTP Method

http://<server>/adminapi/callControlGroup/{id}URI

Cisco Unified Contact Center Express Developer Guide, Release 10.534

System Configuration APIsDelete Call Control Group

Page 47: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/callControlGroup/12Example URI

Application/XML, Application/JSONContent Type

200, 202, 206HTTP Success Code

401, 404, 405, 412, 500, 503HTTP Failure Codes

—Error Codes

Check Status of POST/PUT/DELETEGETHTTP Method

http://<server>/adminapi/callControlGroup/{id}/statusURI

http://uccx-server:8080/adminapi/callControlGroup/12/statusExample URI

Application/XML, Application/JSONContent Type

201, 206HTTP Success Code

401, 404, 410, 500, 503HTTP Failure Codes

—Error Codes

After a POST, PUT or DELETE, perform a GET for the status of the job. If you do not perform a GETrequest with in 5 minutes, a PUT or DELETE request on the same Call ControlGroup is not allowed.

Attention

Success Response

For Create

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ccgJobStatus><totalPorts>120</totalPorts><updatePorts>5</updatePorts><lastUpdatedPort>V11_840024</lastUpdatedPort><type>created</type><completed>true</completed>

</ccgJobStatus>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 35

System Configuration APIsCheck Status of POST/PUT/DELETE

Page 48: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

After the last port is created and the Call Control Group is saved, the completed field will be true.Note

For Modify

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ccgJobStatus><totalPorts>120</totalPorts><updatePorts>5</updatePorts><lastUpdatedPort>V11_840024</lastUpdatedPort><type>modified</type><completed>true</completed>

</ccgJobStatus>

After the last port is modified and the Call Control Group is saved, the completed field will be true.Note

For Delete

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ccgJobStatus><totalPorts>120</totalPorts><updatePorts>5</updatePorts><lastUpdatedPort>V11_840024</lastUpdatedPort><type>deleted</type><completed>true</completed>

</ccgJobStatus>

After the last port is deleted and the Call Control Group is saved, the completed field will be true.Note

CampaignCampaigns are logical entities that group a set of contacts together in a dialing list. Campaigns deliver outgoingcalls to agents. Typical applications include appointment and bill payment reminders.

If you select the IVR-based option for a campaign, the outbound calls are handled by the IVR scripts.

If you select the Agent-based option for a campaign, the outbound calls are handled by the available agents.

Data Structure for CampaignDescriptionRestrictionsBase TypeAttribute Name

Unique identifier for the campaign.1 to 2147483647baseIdIntcampaignId

Cisco Unified Contact Center Express Developer Guide, Release 10.536

System Configuration APIsCampaign

Page 49: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Unique name for the campaign.

PUT operation cannot modifythe campaign name. If you tryto modify the name, RESTAPI throws 400 BadRequest error.

Note

minLength value = 1

maxLength value = 40

Campaign name containsalphanumeric characters,spaces, underscores (_), andhyphens (-) without leadingor trailing white spaces.

stringcampaignName

Indicates if the campaign is currentlyactive.

default = falsebooleanenabled

Description of the campaign.minLength value = 0

maxLength value = 50

stringdescription

Campaign start time.Between 00:00 to 23:59inclusive

default = 08:00

timeType,string

startTime

Campaign end time.Between 00:00 to 23:59inclusive

default = 21:00

timeType,string

endTime

Time zone of the campaign.

When you create a campaign,the time zone if given isignored and the server timezone is considered by default.This field is read only andcannot be modified throughPUT operation.

Note

—stringtimeZone

Type of campaign to be used foroutbound calls. You can specify oneof the following two campaign types:

• Agent-based—All the outboundcalls in the campaign are handledby the available agents.

• IVR-based—All the outboundcalls in the campaign are handledby the IVR scripts.

enum values = AGENT,IVR

enumcampaignType

Cisco Unified Contact Center Express Developer Guide, Release 10.5 37

System Configuration APIsData Structure for Campaign

Page 50: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

The dialer type options available for acampaign vary depending on thecampaign type.

For Agent-based campaign type:

• Direct Preview

• Progressive

• Predictive

For IVR-based campaign type:

• Progressive

• Predictive

enum values =DIRECT_PREVIEW,PROGRESSIVE,PREDICTIVE

enumdialerType

Indicates the number of contacts thatare yet to be dialed, contacts thatrequest a callback, and contacts thatwill be tried again because ofunsuccessful prior attempts.

default = 0unsignedIntpendingContacts

Common Data Structure for IVR-Based and Agent-Based CampaignsDescriptionRestrictionsBase TypeAttribute Name

The campaign calling number is thenumber that appears to the contact.This number is used by the dialer.

minLength value = 1

maxLength value = 16

The calling number canhave up to 15 digits withan optional plus (+) prefix.

Matches the E.164standard.

stringcampaignCallingNum

Themaximumnumber of times to diala contact beyond which the call statusis marked as Closed.

minInclusive value = 1

maxInclusive value = 3

default = 3

unsignedIntmaxDialAttempts

The duration before and after thescheduled callback time during whicha callback is attempted.

minInclusive value = 1

maxInclusive value = 60

default = 15

unsignedIntcallbackTimeLimit

Cisco Unified Contact Center Express Developer Guide, Release 10.538

System Configuration APIsCommon Data Structure for IVR-Based and Agent-Based Campaigns

Page 51: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Determines whether a low-volumecall is treated as voice ordisconnected.

default = truebooleantreatLowVolAsVoice

The duration for which theProgressive/Predictive dialer allowsthe phone to ring before disconnectingan unanswered call.

minInclusive value = 1

maxInclusive value = 60

default = 15

unsignedIntnoAnswerRingLimit

If the customer disconnects the callwithin the time that is here, then thecall is classified as customerabandoned.

minInclusive value = 1

maxInclusive value = 10

default = 2

unsignedIntabandonedCallWaitTime

Duration for which the dialer waitsbefore calling back a no-answer call.

minInclusive value = 0

maxInclusive value =65535

default = 60

unsignedIntretryNoAnswerDelay

Duration for which the dialer waitsbefore calling back a busy telephonenumber.

minInclusive value = 0

maxInclusive value =65535

default = 60

unsignedIntretryBusySignalDelay

If a customer abandons a call, theduration after which the dialer callsback the customer.

minInclusive value = 0

maxInclusive value =65535

default = 0

unsignedIntretryCustAbandonedDelay

If the dialer abandons a call, theduration after which the dialer callsback the customer.

minInclusive value = 0

maxInclusive value =65535

default = 0

unsignedIntretryDialerAbandonedDelay

Common Data Structure for Outbound IVR - Progressive and PredictiveCampaigns

DescriptionRestrictionsBase TypeAttribute Name

The JTAPI trigger that is associatedwith the campaign.

—nameUriPairapplicationTrigger

Number of dedicated IVR ports that youwant to reserve for this campaign.

—unsignedIntnumDedicatedPorts

Cisco Unified Contact Center Express Developer Guide, Release 10.5 39

System Configuration APIsCommon Data Structure for Outbound IVR - Progressive and Predictive Campaigns

Page 52: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Number of lines to be dialed for eachport.

minInclusive value = 1.0

maxInclusive value = 3.0

default = 1.0

floatlinesPerPort

Data Structure for Outbound IVR - Predictive CampaignDescriptionRestrictionsBase TypeAttribute Name

Maximum number of lines to be dialedfor each port.

minInclusive = 1.0

maxInclusive = 3.0

default = 3.0

floatmaxLinesPerPort

The number of calls that were answeredby live voice that the predictive algorithmconsiders for each iteration.

minInclusive = 10

maxInclusive = 1000

default = 100

unsignedIntpredictiveCorrectionPace

Controls the size of the lines-per-portcorrections.

minEnclusive = 0.0

maxInclusive = 1.0

default = 1.0

floatpredictiveGain

Call abandon percentage.minEnclusive = 0.0

maxInclusive = 100.0

default = 3.0

floatcallAbandonLimit

Data Structure for Preview CampaignDescriptionRestrictionsBase TypeAttribute Name

The maximum number of times acontact is dialed.

minInclusive = 1

maxInclusive = 3

default = 3

unsignedIntmaxDialAttempts

The number of contact records that areretrieved from the database in bulk fordialing.

minInclusive = 1

maxInclusive = 100

default = 20

unsignedIntcacheSize

Cisco Unified Contact Center Express Developer Guide, Release 10.540

System Configuration APIsData Structure for Outbound IVR - Predictive Campaign

Page 53: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

If this attribute is enabled, the phonenumber is dialed again at a later time ifan answering machine is reached thefirst time.

default = falsebooleanansMachineRetry

The customer-specified callback time.minInclusive = 1

maxInclusive = 60

default = 15

unsignedIntcallbackTimeLimit

The callback action if a callback ismissed.

enum values =NEXT_DAY, RETRY,CLOSE

default = NEXT_DAY

stringmissedCallbackAction

The Contact Service Queues (CSQs)from which agents are selected foroutbound calls for the campaign.

minLength value = 1stringassignedCSQs

Common Data Structure for Outbound Agent - Progressive and PredictiveCampaigns

DescriptionRestrictionsBase TypeAttribute Name

Number of lines to be dialed for eachagent.

minInclusive value = 1.0

maxInclusive value = 3.0

default = 1.0

floatlinesPerAgent

The Contact Service Queues (CSQs)from which agents are selected foroutbound calls for the campaign.

minLength value = 1stringassignedCSQs

Specifies how to handle an outboundcall if an answering machine is reached.

enum values =TRANSFER_TO_IVR,END_CALL

default =TRANSFER_TO_IVR

stringansMachineTreatment

The JTAPI trigger that is associatedwith the campaign.

Application trigger is usedonly when you choose thetransfer to IVR option for anoutbound call.

Note

minOccurs= 0nameUriPairanswerMachineTreatmentTrigger

Cisco Unified Contact Center Express Developer Guide, Release 10.5 41

System Configuration APIsCommon Data Structure for Outbound Agent - Progressive and Predictive Campaigns

Page 54: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Specifies how to handle an outboundcall if agents are not available.

enum values =TRANSFER_TO_IVR,ABANDON_CALL

default =TRANSFER_TO_IVR

stringabandonedCallTreatment

The JTAPI trigger that is associatedwith the campaign.

Application trigger is usedonly when you choose thetransfer to IVR option for anoutbound call.

Note

minOccurs= 0nameUriPairabandonedCallTreatmentTrigger

The callback action if a callback ismissed.

enum values =NEXT_DAY, RETRY,CLOSE

default = NEXT_DAY

stringmissedCallbackAction

Data Structure for Outbound Agent - Predictive CampaignDescriptionRestrictionsBase TypeAttribute Name

Maximum number of lines to be dialedfor each agent.

minInclusive = 1.0

maxInclusive = 3.0

default = 3.0

floatmaxLinesPerAgent

The number of calls that were answeredby live voice that the predictive algorithmconsiders for each iteration.

minInclusive = 10

maxInclusive = 1000

default = 100

unsignedIntpredictiveCorrectionPace

Controls the size of the lines-per-portcorrections.

minEnclusive = 0.0

maxInclusive = 1.0

default = 1.0

floatpredictiveGain

Call abandon percentage.minEnclusive = 0.0

maxInclusive = 100.0

default = 3.0

floatcallAbandonLimit

Cisco Unified Contact Center Express Developer Guide, Release 10.542

System Configuration APIsData Structure for Outbound Agent - Predictive Campaign

Page 55: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get List of CampaignsGETHTTP Method

http://<server>/adminapi/campaignURI

http://uccx-server/adminapi/campaignExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><campaigns>

<campaign><self>https://uccx-server/adminapi/campaign/202</self><campaignId>202</campaignId><campaignName>IVRPredictive</campaignName><enabled>false</enabled><description>This is IVR Predictive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts>

</campaign><campaign>

<self>https://uccx-server/adminapi/campaign/201</self><campaignId>201</campaignId><campaignName>IVRProgressive</campaignName><enabled>false</enabled><description>This is IVR Progressive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts>

</campaign><campaign>

<self>https://uccx-server/adminapi/campaign/200</self><campaignId>200</campaignId><campaignName>OBPreview</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>DIRECT_PREVIEW</dialerType><pendingContacts>0</pendingContacts>

</campaign><campaign>

<self>https://uccx-server/adminapi/campaign/200</self>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 43

System Configuration APIsGet List of Campaigns

Page 56: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<campaignId>200</campaignId><campaignName>Agent progressive</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts>

</campaign><campaign>

<self>https://uccx-server/adminapi/campaign/200</self><campaignId>200</campaignId><campaignName>Agent predictive</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts>

</campaign></campaigns>

Get CampaignGETHTTP Method

http://<server>/adminapi/campaign/{id}URI

http://uccx-server/adminapi/campaign/200Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/200</self><campaignId>200</campaignId><campaignName>OBPreview</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>DIRECT_PREVIEW</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obPreview><maxDialAttempts>3</maxDialAttempts><cacheSize>20</cacheSize>

Cisco Unified Contact Center Express Developer Guide, Release 10.544

System Configuration APIsGet Campaign

Page 57: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<ansMachineRetry>false</ansMachineRetry><callbackTimeLimit>15</callbackTimeLimit><missedCallbackAction>NEXT_DAY</missedCallbackAction><assignedCSQs>

<csq name="1"><refURL>https://uccx-server/adminapi/csq/1</refURL>

</csq></assignedCSQs>

</obPreview></typeSpecificInfo>

</campaign>

Create CampaignPOSTHTTP Method

http://<server>/adminapi/campaignURI

http://uccx-server/adminapi/campaignExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

400, 401, 405HTTP Failure Codes

—Error Codes

When Cisco Finesse is deactivated, new agent predictive and agent progressive campaigns cannot becreated.

Note

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5 45

System Configuration APIsCreate Campaign

Page 58: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound IVR - Progressive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/201</self><campaignId>201</campaignId><campaignName>IVRProgressive</campaignName><enabled>false</enabled><description>This is IVR Progressive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obIvrProgressive><campaignCallingNum>12345</campaignCallingNum><applicationTrigger name="5657656">

<refURL>https://uccx-server/adminapi/trigger/5657656</refURL></applicationTrigger><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><numDedicatedPorts>0</numDedicatedPorts><linesPerPort>1.0</linesPerPort><treatLowVolAsVoice>true</treatLowVolAsVoice><ansMachineTreatment>TRANSFER_TO_IVR</ansMachineTreatment><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>30</retryCustAbandonedDelay><retryDialerAbandonedDelay>60</retryDialerAbandonedDelay>

</obIvrProgressive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.546

System Configuration APIsCreate Campaign

Page 59: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound IVR - Predictive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/202</self><campaignId>202</campaignId><campaignName>IVRPredictive</campaignName><enabled>false</enabled><description>This is IVR Predictive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obIvrPredictive><campaignCallingNum>112233</campaignCallingNum><applicationTrigger name="464355">

<refURL>https://uccx-server/adminapi/trigger/464355</refURL></applicationTrigger><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><numDedicatedPorts>0</numDedicatedPorts><linesPerPort>1.5</linesPerPort><treatLowVolAsVoice>true</treatLowVolAsVoice><ansMachineTreatment>TRANSFER_TO_IVR</ansMachineTreatment><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>30</retryCustAbandonedDelay><retryDialerAbandonedDelay>60</retryDialerAbandonedDelay><maxLinesPerPort>3.0</maxLinesPerPort><predictiveCorrectionPace>100</predictiveCorrectionPace><predictiveGain>1.0</predictiveGain><callAbandonLimit>3.0</callAbandonLimit>

</obIvrPredictive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 47

System Configuration APIsCreate Campaign

Page 60: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Preview Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/200</self><campaignId>200</campaignId><campaignName>OBPreview</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>DIRECT_PREVIEW</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obPreview><maxDialAttempts>3</maxDialAttempts><cacheSize>20</cacheSize><ansMachineRetry>false</ansMachineRetry><callbackTimeLimit>15</callbackTimeLimit><missedCallbackAction>NEXT_DAY</missedCallbackAction><assignedCSQs>

<csq name="1"><refURL>https://uccx-server/adminapi/csq/1</refURL>

</csq></assignedCSQs>

</obPreview></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.548

System Configuration APIsCreate Campaign

Page 61: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound Agent - Progressive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>http://uccx-server/adminapi/campaign/105</self><campaignId>105</campaignId><campaignName>Agent Progressive</campaignName><enabled>false</enabled><description>description</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obAgentProgressive><campaignCallingNum>7777</campaignCallingNum><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><treatLowVolAsVoice>true</treatLowVolAsVoice><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>0</retryCustAbandonedDelay><retryDialerAbandonedDelay>0</retryDialerAbandonedDelay><linesPerAgent>1.0</linesPerAgent><assignedCSQs>

</csq><csq name="37"><refURL>http://uccx-server/adminapi/csq/37</refURL>

</csq></assignedCSQs><answerMachineTreatment>TRANSFER_TO_IVR</answerMachineTreatment><answerMachineTreatmentTrigger name="4600">

<refURL>http://uccx-server/adminapi/trigger/4600</refURL></answerMachineTreatmentTrigger><abandonedCallTreatment>TRANSFER_TO_IVR</abandonedCallTreatment><abandonedCallTreatmentTrigger name="4800">

<refURL>http://uccx-server/adminapi/trigger/4800</refURL></abandonedCallTreatmentTrigger><missedCallbackAction>NEXT_DAY</missedCallbackAction>

</obAgentProgressive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 49

System Configuration APIsCreate Campaign

Page 62: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound Agent - Predictive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>http://uccx-server/adminapi/campaign/114</self><campaignId>114</campaignId><campaignName>Agent predictive</campaignName><enabled>false</enabled><description>description</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obAgentPredictive><campaignCallingNum>7777</campaignCallingNum><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><treatLowVolAsVoice>true</treatLowVolAsVoice><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>0</retryCustAbandonedDelay><retryDialerAbandonedDelay>0</retryDialerAbandonedDelay><linesPerAgent>2.0</linesPerAgent><assignedCSQs>

</csq><csq name="37"><refURL>http://uccx-server/adminapi/csq/37</refURL>

</csq></assignedCSQs><answerMachineTreatment>TRANSFER_TO_IVR</answerMachineTreatment><answerMachineTreatmentTrigger name="4600">

<refURL>http://uccx-server/adminapi/trigger/4600</refURL></answerMachineTreatmentTrigger><abandonedCallTreatment>TRANSFER_TO_IVR</abandonedCallTreatment><abandonedCallTreatmentTrigger name="4800">

<refURL>http://uccx-server/adminapi/trigger/4800</refURL></abandonedCallTreatmentTrigger><missedCallbackAction>NEXT_DAY</missedCallbackAction><maxLinesPerAgent>2.0</maxLinesPerAgent><predictiveCorrectionPace>100</predictiveCorrectionPace><predictiveGain>1.0</predictiveGain><callAbandonLimit>0.0</callAbandonLimit>

</obAgentPredictive></typeSpecificInfo>

</campaign>

Modify CampaignPUTHTTP Method

http://<server>/adminapi/campaign /{id}URI

http://uccx-server/adminapi/campaign/200Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

Cisco Unified Contact Center Express Developer Guide, Release 10.550

System Configuration APIsModify Campaign

Page 63: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Sample Input XML—Outbound IVR - Progressive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/201</self><campaignId>201</campaignId><campaignName>IVRProgressive</campaignName><enabled>false</enabled><description>This is IVR Progressive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obIvrProgressive><campaignCallingNum>12345</campaignCallingNum><applicationTrigger name="5657656">

<refURL>https://uccx-server/adminapi/trigger/5657656</refURL></applicationTrigger><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><numDedicatedPorts>0</numDedicatedPorts><linesPerPort>1.0</linesPerPort><treatLowVolAsVoice>true</treatLowVolAsVoice><ansMachineTreatment>TRANSFER_TO_IVR</ansMachineTreatment><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>30</retryCustAbandonedDelay><retryDialerAbandonedDelay>60</retryDialerAbandonedDelay>

</obIvrProgressive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 51

System Configuration APIsModify Campaign

Page 64: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound IVR - Predictive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/202</self><campaignId>202</campaignId><campaignName>IVRPredictive</campaignName><enabled>false</enabled><description>This is IVR Predictive campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>IVR</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obIvrPredictive><campaignCallingNum>112233</campaignCallingNum><applicationTrigger name="464355">

<refURL>https://uccx-server/adminapi/trigger/464355</refURL></applicationTrigger><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><numDedicatedPorts>0</numDedicatedPorts><linesPerPort>1.5</linesPerPort><treatLowVolAsVoice>true</treatLowVolAsVoice><ansMachineTreatment>TRANSFER_TO_IVR</ansMachineTreatment><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>30</retryCustAbandonedDelay><retryDialerAbandonedDelay>60</retryDialerAbandonedDelay><maxLinesPerPort>3.0</maxLinesPerPort><predictiveCorrectionPace>100</predictiveCorrectionPace><predictiveGain>1.0</predictiveGain><callAbandonLimit>3.0</callAbandonLimit>

</obIvrPredictive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.552

System Configuration APIsModify Campaign

Page 65: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Preview Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>https://uccx-server/adminapi/campaign/200</self><campaignId>200</campaignId><campaignName>OBPreview</campaignName><enabled>false</enabled><description>This is Outbound Preview campaign</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>DIRECT_PREVIEW</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obPreview><maxDialAttempts>3</maxDialAttempts><cacheSize>20</cacheSize><ansMachineRetry>false</ansMachineRetry><callbackTimeLimit>15</callbackTimeLimit><missedCallbackAction>NEXT_DAY</missedCallbackAction><assignedCSQs>

<csq name="1"><refURL>https://uccx-server/adminapi/csq/1</refURL>

</csq></assignedCSQs>

</obPreview></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 53

System Configuration APIsModify Campaign

Page 66: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound Agent - Progressive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>http://uccx-server/adminapi/campaign/105</self><campaignId>105</campaignId><campaignName>Agent Progressive</campaignName><enabled>false</enabled><description>description</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PROGRESSIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obAgentProgressive><campaignCallingNum>7777</campaignCallingNum><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><treatLowVolAsVoice>true</treatLowVolAsVoice><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>0</retryCustAbandonedDelay><retryDialerAbandonedDelay>0</retryDialerAbandonedDelay><linesPerAgent>1.0</linesPerAgent><assignedCSQs>

</csq><csq name="37"><refURL>http://uccx-server/adminapi/csq/37</refURL>

</csq></assignedCSQs><answerMachineTreatment>TRANSFER_TO_IVR</answerMachineTreatment><answerMachineTreatmentTrigger name="4600">

<refURL>http://uccx-server/adminapi/trigger/4600</refURL></answerMachineTreatmentTrigger><abandonedCallTreatment>TRANSFER_TO_IVR</abandonedCallTreatment><abandonedCallTreatmentTrigger name="4800">

<refURL>http://uccx-server/adminapi/trigger/4800</refURL></abandonedCallTreatmentTrigger><missedCallbackAction>NEXT_DAY</missedCallbackAction>

</obAgentProgressive></typeSpecificInfo>

</campaign>

Cisco Unified Contact Center Express Developer Guide, Release 10.554

System Configuration APIsModify Campaign

Page 67: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Outbound Agent - Predictive Campaign

<?xml version="1.0" encoding="UTF-8"?><campaign>

<self>http://uccx-server/adminapi/campaign/114</self><campaignId>114</campaignId><campaignName>Agent predictive</campaignName><enabled>false</enabled><description>description</description><startTime>08:00</startTime><endTime>21:00</endTime><timeZone>India Standard Time</timeZone><campaignType>AGENT</campaignType><dialerType>PREDICTIVE</dialerType><pendingContacts>0</pendingContacts><typeSpecificInfo>

<obAgentPredictive><campaignCallingNum>7777</campaignCallingNum><maxDialAttempts>3</maxDialAttempts><callbackTimeLimit>15</callbackTimeLimit><treatLowVolAsVoice>true</treatLowVolAsVoice><noAnswerRingLimit>15</noAnswerRingLimit><abandonedCallWaitTime>2</abandonedCallWaitTime><retryNoAnswerDelay>60</retryNoAnswerDelay><retryBusySignalDelay>60</retryBusySignalDelay><retryCustAbandonedDelay>0</retryCustAbandonedDelay><retryDialerAbandonedDelay>0</retryDialerAbandonedDelay><linesPerAgent>2.0</linesPerAgent><assignedCSQs>

</csq><csq name="37"><refURL>http://uccx-server/adminapi/csq/37</refURL>

</csq></assignedCSQs><answerMachineTreatment>TRANSFER_TO_IVR</answerMachineTreatment><answerMachineTreatmentTrigger name="4600">

<refURL>http://uccx-server/adminapi/trigger/4600</refURL></answerMachineTreatmentTrigger><abandonedCallTreatment>TRANSFER_TO_IVR</abandonedCallTreatment><abandonedCallTreatmentTrigger name="4800">

<refURL>http://uccx-server/adminapi/trigger/4800</refURL></abandonedCallTreatmentTrigger><missedCallbackAction>NEXT_DAY</missedCallbackAction><maxLinesPerAgent>2.0</maxLinesPerAgent><predictiveCorrectionPace>100</predictiveCorrectionPace><predictiveGain>1.0</predictiveGain><callAbandonLimit>0.0</callAbandonLimit>

</obAgentPredictive></typeSpecificInfo>

</campaign>

Delete CampaignDELETEHTTP Method

http://<server>/adminapi/campaign /{id}URI

http://uccx-server/adminapi/campaign/200Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

Cisco Unified Contact Center Express Developer Guide, Release 10.5 55

System Configuration APIsDelete Campaign

Page 68: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Modify Campaign StatePUTHTTP Method

http://<server>/adminapi/campaign /{id}/state/{enable or disable}URI

http://uccx-server/adminapi/campaign/200/state/enable

http://uccx-server/adminapi/campaign/200/state/disable

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

400, 404, 500HTTP Failure Code

—Error Codes

Success Response

HTTP/1.1 200 OK

Campaign ContactsCampaign contacts are contacts that are associated with the campaigns as campaign members.

Data Structure for Campaign ContactsDescriptionRestrictionsBase TypeAttribute Name

The campaign to whichthe contacts areassociated.

—nameUriPaircampaign

Cisco Unified Contact Center Express Developer Guide, Release 10.556

System Configuration APIsModify Campaign State

Page 69: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

List of contacts withrelevant information foreach contact in acomma-separated text file.

• The first non-empty line is treated asheader line.

• The following case-insensitiveheaders are supported:

• Account Number

• First Name

• Last Name

• Phone1

• Phone2

• Phone3

• Dial Time

• Phone1 is mandatory and must bespecified.

• Tomcat has a 3 MB size restriction,so GET operation returns amaximumof 10,000 records.

stringcsvdata

Get List of Pending Contacts for CampaignGETHTTP Method

http://<server>/adminapi/campaign/{id}/contactsURI

http://uccx-server/adminapi/campaign/200/contactsExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><campaignContacts>

<campaign name="previewCampaign"><link href="http://uccx-server/adminapi/campaign/932"

Cisco Unified Contact Center Express Developer Guide, Release 10.5 57

System Configuration APIsGet List of Pending Contacts for Campaign

Page 70: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

rel="campaign" type="campaign"/></campaign><csvdata>account number, first name, last name, phone1,

phone2, phone3, dial time

, , , 1000, , , 10:45, , , 1001, , , 10:45, , , 1002, , , 10:45, , , 1003, , , 10:45, , , 1004, , , 10:45</csvdata>

</campaignContacts>

<?xml version="1.0" encoding="UTF-8"?><campaignContacts>

<campaign name="previewCampaign"><refURL>https://uccx-server/adminapi/campaign/932</refURL>

</campaign><csvdata>account number, first name, last name, phone1,

phone2, phone3, dial time, call result, callback number, call status, call result01, call result 02, call result 03, last number dialled, calls made to phone 01, calls madeto phone 02, calls made to phone 03, retry, num missed call back

, , , 1000, , , 10:45, 0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1001, , , 10:45, 0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1002, , , 10:45, 0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1003, , , 10:45, 0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1004, , , 10:45, 0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0</csvdata>

</campaignContacts>

Get List of Pending Contacts for Campaign with Specific Call StatusThis API allows you to provide a specific call status to list the pending contacts for a campaign that exists inthe system. The following call statuses are supported:

• PENDING

• CALLBACK

• RETRY

• RETRIES_WITH_DELAY

• MAX_CALLS

• UNKNOWN

GETHTTP Method

http://<server>/adminapi/campaign/{id}/contacts?q={callstatus}URI

http://uccx-server/adminapi/campaign/200/contacts?q=CALLBACKExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.558

System Configuration APIsGet List of Pending Contacts for Campaign with Specific Call Status

Page 71: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><campaignContacts>

<campaign name="previewCampaign"><refURL>http://uccx-server/adminapi/campaign/200</refURL></campaign><csvdata>account number, first name, last name, phone1,

phone2, phone3, dial time, , , 1000, , , 10:45, , , 1001, , , 10:45, , , 1002, , , 10:45, , , 1003, , , 10:45, , , 1004, , , 10:45</csvdata>

</campaignContacts>

<?xml version="1.0" encoding="UTF-8"?><campaignContacts>

<campaign name="previewCampaign"><refURL>http://uccx-server/adminapi/campaign/200</refURL>

</campaign><csvdata>account number, first name, last name, phone1,

phone2, phone3, dial time, call result, callback number, call status, call result01, call result 02, call result 03, last number dialled, calls made to phone 01, calls madeto phone 02, calls made to phone 03, retry, num missed call back

, , , 1000, , , 10:45,0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1001, , , 10:45,0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1002, , , 10:45,0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1003, , , 10:45,0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0, , , 1004, , , 10:45,0, , 5, 0, 0, 0, 0, 0, 0, 0, false, 0</csvdata>

</campaignContacts>

Add Contacts to CampaignPOSTHTTP Method

http://<server>/adminapi/campaign/{id}/contactsURI

http://uccx-server/adminapi/campaign/200/contactsExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><campaignContacts>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 59

System Configuration APIsAdd Contacts to Campaign

Page 72: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<campaign name="Campaign1"><refURL>https://uccx-server/adminapi/campaign/200</refURL>

</campaign><csvdata/>

</campaignContacts>

Sample Input XML

<?xml version="1.0" encoding="UTF-8"?><campaignContacts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="campaignContacts.xsd">

<campaign name="Campaign1"><refURL>https://uccx-server/adminapi/campaign/200</refURL>

</campaign><csvdata>

Account Number, First Name, Last Name ,Phone1, Phone2, Phone3, Dial TimeABCD1234, John , Doe, 1401111, 1402222, 1403333, 12:35ABCD1235, Jane , Smith, 1504444, 1505555, 1506666, 12:35

</csvdata></campaignContacts>

Delete All Contacts from CampaignDELETEHTTP Method

http://<server>/adminapi/campaign /{id}/contactsURI

http://uccx-server/adminapi/campaign/200/contactsExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Chat WidgetChat Widget is a chat program that is run by Unified CCX.

Cisco Unified Contact Center Express Developer Guide, Release 10.560

System Configuration APIsDelete All Contacts from Campaign

Page 73: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for Chat WidgetDescriptionRestrictionsBase TypeAttribute Name

Unique ID for each widget.minOccurs = 0

minValue = 1

maxValue =2147483647

intid

Name of the chat widget.minLength = 1

maxLength = 50

occurrences = 1

Regex = ([^<>~`!@#$%?&*()=[]{};,/ '+:.,"])+

stringname

Description of the widget that isconfigured in Unified CCXAdministration.

minLength = 1

maxLength = 50

occurrences = 1

Regex = ([^<>~`!@#$%?&*()=[]{};,/ '+:.,"])+

stringdescription

Fields that are present in theform.

minLength = 1

maxLength = 50

occurrences = 10

Regex = ([^<>~`!@#$%?&*()=[]{};,/ '+:.,"])+

stringformFields

Location of the logo file that isdisplayed in the widget.

minLength = 1

maxLength = 255

minOccurs = 0

maxOccurs = 1

Regex = ([^ <>&#*@!`()|{}[]':,;"])+

stringlogoURL

Cisco Unified Contact Center Express Developer Guide, Release 10.5 61

System Configuration APIsData Structure for Chat Widget

Page 74: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Message that is displayed to thecustomer when the customerstarts a chat session.

minLength = 1

maxLength = 255

minOccurs = 0

maxOccurs = 1

Regex = ([^<>|()"])+

Default = “Welcome.Please wait while weconnect you to acustomer carerepresentative.”

stringwelcomeMessage

Message that is displayed to thecustomer when a chat request isnot handled within the set time.

minLength = 1

maxLength = 255

minOccurs = 0

maxOccurs = 1

Regex = ([^<>|()"])+

Default = “All customercare representatives arebusy. Please wait or tryagain later. ”

stringagentJoinTimeoutMsg

Message that is displayed to thecustomer when Unified CCX orchat service is not available tohandle chat requests.

minLength = 1

maxLength = 255

minOccurs = 0

maxOccurs = 1

Regex = ([^<>|()"])+

Default = “Sorry, thechat service is currentlynot available. Please tryagain later. ”

stringchatErrorMsg

Definition of the problem.minlength = 1

maxlength = 100

occurrences =Unbounded

Regex = ([^<>~`!@#$%?&*()=[]{};,/ '+:.,"])+

problemStatementcsqproblemStatementCSQPair

Cisco Unified Contact Center Express Developer Guide, Release 10.562

System Configuration APIsData Structure for Chat Widget

Page 75: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Simple Data Structure and Elements That Are Used in Chat WidgetDescriptionRestrictionsBase TypeAttribute Name

minOccurs = 1

maxOccurs = 1

Regex = ([^|'])+

stringproblemStatement

minOccurs = 1

maxOccurs = 1

nameUriPaircsq

Create Chat WidgetPOSTHTTP Method

http://<server>/adminapi/chatWidgetURI

http://uccx-server/adminapi/chatWidgetExample URI

Application/XML, Application/JSONContent Type

201HTTP Success code

401, 404, 405, 409HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5 63

System Configuration APIsSimple Data Structure and Elements That Are Used in Chat Widget

Page 76: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML— POST

<?xml version="1.0" encoding="UTF-8"?><chatWidget><self href=http://uccx-server:8080/adminapi/chatWidget rel="self" type="chatWidget"/><name>ChatWidget1</name><description>description chatWidget1</description><formField>formField test</formField><logoURL>./img/myLogo.png</logoURL><welcomeMessage>Welcome, please wait while we connect you with a customer care

representative.</welcomeMessage><agentJoinTimeoutMsg>All customer care representatives are busy assisting other clients.Please continue to wait or try again later.</agentJoinTimeoutMsg><chatErrorMsg>Sorry, the chat service is currently not available. Please try again

later.</chatErrorMsg><problemStatementCSQPair><problemStatement>problemStatement test</problemStatement><csq name="Auto_Voice_CSQ"><link href=http://uccx-server/adminapi/csq/1 rel="" type=""/>

</csq></problemStatementCSQPair>

</chatWidget>

Get List of Chat WidgetsGETHTTP Method

http://<server>/adminapi/chatWidgetURI

http://uccx-server/adminapi/chatWidgetExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.564

System Configuration APIsGet List of Chat Widgets

Page 77: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><chatWidgets><chatWidget><self href="http://uccx-server:8080/adminapi/chatWidget/2" rel="self"

type="chatWidget"/><id>2</id><name>TESTCHATWIDGET0</name><description>DESCRIPTION</description><formField>NAME</formField><formField>EMAIL</formField><formField>ADDRESS</formField><formField>CITY</formField><formField>AGE</formField><logoURL>./img/ciscoLogoColor.png</logoURL><welcomeMessage>Welcome, please wait while we connect you with a customer care

representative.</welcomeMessage><agentJoinTimeoutMsg>All customer care representatives are busy assisting other clients.

Please continue to wait or try again later.</agentJoinTimeoutMsg><chatErrorMsg>Sorry, the chat service is currently not available. Please try again

later.</chatErrorMsg><problemStatementCSQPair><problemStatement>problemStatement 0</problemStatement><csq name="Auto_Chat_CSQ"><link href="http://uccx-server:8080/adminapi/csq/1" rel="used by" type="csq"/></csq></problemStatementCSQPair></chatWidget><chatWidget><self href="http://uccx-server:8080/adminapi/chatWidget/3" rel="self"

type="chatWidget"/><id>3</id><name>TESTCHATWIDGET1</name><description>DESCRIPTION</description><formField>NAME</formField><formField>EMAIL</formField><formField>ADDRESS</formField><formField>CITY</formField><formField>AGE</formField><logoURL>./img/ciscoLogoColor.png</logoURL><welcomeMessage>Welcome, please wait while we connect you with a customer care

representative.</welcomeMessage><agentJoinTimeoutMsg>All customer care representatives are busy assisting other clients.

Please continue to wait or try again later.</agentJoinTimeoutMsg><chatErrorMsg>Sorry, the chat service is currently not available. Please try again

later.</chatErrorMsg><problemStatementCSQPair><problemStatement>problemStatement 0</problemStatement><csq name="Auto_Chat_CSQ"><link href="http://uccx-server:8080/adminapi/csq/1" rel="used by" type="csq"/></csq></problemStatementCSQPair></chatWidget>

</chatWidgets>

Get Chat Widget (XML)GETHTTP Method

http://<server>/adminapi/chatWidget/<chatWidget id>URI

http://uccx-server/adminapi/chatWidget/2Example URI

Cisco Unified Contact Center Express Developer Guide, Release 10.5 65

System Configuration APIsGet Chat Widget (XML)

Page 78: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><chatWidget><self href="http://uccx-server:8080/adminapi/chatWidget/2" rel="self"

type="chatWidget"/><id>2</id><name>TESTCHATWIDGET0</name><description>DESCRIPTION</description><formField>NAME</formField><formField>EMAIL</formField><formField>ADDRESS</formField><formField>CITY</formField><formField>AGE</formField><logoURL>./img/ciscoLogoColor.png</logoURL><welcomeMessage>Welcome, please wait while we connect you with a customer care

representative.</welcomeMessage><agentJoinTimeoutMsg>All customer care representatives are busy assisting other clients.

Please continue to wait or try again later.</agentJoinTimeoutMsg><chatErrorMsg>Sorry, the chat service is currently not available. Please try again

later.</chatErrorMsg><problemStatementCSQPair><problemStatement>problemStatement 0</problemStatement><csq name="Auto_Chat_CSQ"><link href="http://uccx-server:8080/adminapi/csq/1" rel="used by" type="csq"/></csq></problemStatementCSQPair>

</chatWidget>

Get Chat Widget (HTML)GETHTTP Method

http://<server>/adminapi/chatWidget/<chatWidget id>URI

http://uccx-server/adminapi/chatWidget/2Example URI

Application/HTMLContent Type

200HTTP Success Code

401, 404, 405, 409HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.566

System Configuration APIsGet Chat Widget (HTML)

Page 79: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><script language="JavaScript">

function updateAuthor(theForm){if(theForm.extensionField_Name){if(theForm.extensionField_Name.value!=""){theForm.author.value=theForm.extensionField_Name.value;theForm.extensionField_Name.name='extensionField_h_Name';return(true);}}if(theForm.extensionField_Email){if(theForm.extensionField_Email.value!=""){theForm.author.value=theForm.extensionField_Email.value;theForm.extensionField_Email.name='extensionField_h_Email';return(true);}}return(true);}

</script></head><body><form action="https://server.com/chatproxy/api/chat/form/100000" method="post"onsubmit="return updateAuthor(this)"><style type="text/css">span { display: inline-block; width: 120px; }</style>

<span>NAME:</span><input type="text" name="extensionField_NAME" /><br/><span>EMAIL:</span><input type="text" name="extensionField_EMAIL" /><br/><span>ADDRESS:</span><input type="text" name="extensionField_ADDRESS" /><br/><span>CITY:</span><input type="text" name="extensionField_CITY" /><br/><span>AGE:</span><input type="text" name="extensionField_AGE" /><br/><span>Problem:</span><select name="extensionField_ccxqueuetag"><br/>

<option value="Chat_Csq1">problemStatement 0</option></select><br/>

<input type="submit" value="Submit"/><input type="hidden" name="author"value="Customer"/><br/><input type="hidden" name="title" value="ccx chat"/><br/><input type="hidden" name="extensionField_h_widgetName123456" value="TESTCHATWIDGET0"/><br/><!-- The following optional, hidden fields are available in order to customize the CustomerChat user interface.Unlike other extension fields, these are not added to the social contact, and thereforedo not display in the Agent Chat user interface.--><input type="hidden" name="extensionField_chatLogo" value="./img/ciscoLogoColor.png"><br/><input type="hidden" name="extensionField_chatWaiting" value="Welcome, please wait whilewe connect you with a customer care representative."><input type="hidden" name="extensionField_chatAgentJoinTimeOut" value="All customer carerepresentatives are busy assisting other clients. Please continue to wait or try againlater."><input type="hidden" name="extensionField_chatError" value="Sorry, the chat service iscurrently not available. Please try again later."></form></body></html>

Modify Chat WidgetPUTHTTP Method

http://<server>/adminapi/chatWidget/<chatWidget id>URI

http://uccx-server/adminapi/chatWidget/2Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

Cisco Unified Contact Center Express Developer Guide, Release 10.5 67

System Configuration APIsModify Chat Widget

Page 80: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Sample Input XML— PUT

<?xml version="1.0" encoding="UTF-8"?><chatWidget><self href="http://uccx-server:8080/adminapi/chatWidget/2" rel="self" type="chatWidget"/>

<name>ChatWidget1</name><description>description can be changed </description><formField>formField can be changed</formField><logoURL>./img/myLogo.png</logoURL><welcomeMessage>Welcome, please wait while we connect you with a customer care

representative.</welcomeMessage><agentJoinTimeoutMsg>All customer care representatives are busy assisting other clients.Please continue to wait or try again later.</agentJoinTimeoutMsg><chatErrorMsg>Sorry, the chat service is currently not available. Please try again

later.</chatErrorMsg><problemStatementCSQPair><problemStatement>problemStatement testcan be changed</problemStatement><csq name="Auto_Voice_CSQ"><link href="http://uccx-server/adminapi/csq/2" rel="" type=""/>

</csq></problemStatementCSQPair>

</chatWidget>

Delete Chat WidgetDELETEHTTP Method

http://<server>/adminapi/chatWidget/<chatWidget id>URI

http://uccx-server/adminapi/chatWidget/2Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

HTTP/1.1 400 Bad RequestFailure Response

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.568

System Configuration APIsDelete Chat Widget

Page 81: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

HTTP/1.1 200 OK

Contact Service QueueThe Contact Service Queue (CSQ) controls incoming calls by determining where an incoming call is placedin the queue and to which agent the call is sent.

CSQ Data StructureDescriptionRestrictionsBase TypeAttribute Name

Name of the CSQ as set up inUnified CCX Administration

inLength = 1

maxLength = 50

minOccurs = 1

maxOccurs = 1

nillable = false

Name containsalphanumericcharacters, specialcharacters, spaces,underscores (_), andhyphens (-) withoutleading or trailing whitespaces.

stringname

A type of the CSQ.

Possible values:

0—voice CSQ

1—email CSQ

2—chat CSQ

minOccurs = 1

maxOccurs = 1

nillable = false

Enumerations =VOICE, EMAIL,CHAT

stringqueueType

Criterion that specifies howcontacts are queued, as set up inUnified CCX Administration.

minOccurs = 1

maxOccurs = 1

nillable = false

Enumerations = FIFO

stringqueueAlgorithm

Whether an agent goes to WorkState after handling a call fromthis CSQ:

f—No

t—Yes

minOccurs = 0

maxOccurs = 1

nillable = false

default = false

booleanautoWork

Cisco Unified Contact Center Express Developer Guide, Release 10.5 69

System Configuration APIsContact Service Queue

Page 82: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Time in seconds that agent isplaced in Work state.

Possible values:

1—7200

0—disabled

minOccurs = 0

maxOccurs = 1

nillable = false

minInclusive = 0

maxInclusive = 7200

intwrapupTime

Type of resource pool that is setup in Unified CCXAdministration:

1—Resource groups

2—Resource skills

minOccurs = 1

maxOccurs = 1

nillable = false

Enumerations =skillGroup,ResourceGroup

stringresourcePoolType

Goal, in seconds, for themaximum time that a callerspends in the queue before thecall is answered by an agent, asset up in Unified CCXAdministration.

minOccurs = 0

maxOccurs = 1

nillable = false

default = 5

baseIdIntserviceLevel

Goal for the percentage of callsthat meet the service level thatis shown in the serviceLevelfield, as set up in Unified CCXAdministration.

minOccurs = 0

maxOccurs = 1

nillable = false

default = 70

minInclusive = 1

maxInclusive = 100

intserviceLevelPercentage

Specific information about thepool, such as Skill Group orResources Group.

minOccurs = 1

maxOccurs = 1

skillorResourceGrouppoolSpecificInfo

The prompt value is used forremote monitoring. Thecustomer can record the nameof the CSQ and store it in aWAV file. This field containsthe name of the WAV file.

minOccurs = 0

maxOccurs = 1

nillable = false

nameUriPairprompt

Cisco Unified Contact Center Express Developer Guide, Release 10.570

System Configuration APIsCSQ Data Structure

Page 83: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Skill or Resource Group Data StructureDescriptionRestrictionsBase TypeAttribute Name

Unique identifier that isused to locate theassociated skill group inthe Skill Group table.

minOccurs = 1

maxOccurs = 1

(choice)skillCompetencyList

skillGroup

Unique identifier that isused to locate theassociated resource groupin the Resource Grouptable.

minOccurs = 1

maxOccurs = 1

(choice)resourceGrouplist

resourceGroup

Skill Competency Data StructureDescriptionRestrictionsBase TypeAttribute Name

Minimum acceptable skilllevel for agents with thisskill, as set up in theUnified CCXAdministration. Valuesrange from 1 (lowest) to10 (highest).

minOccurs = 0

maxOccurs = 50

skillDetailsskillCompetency

Resource pool selectionmodel that is set up in theUnified CCXAdministration.

minOccurs = 1

maxOccurs = 1

Enumerations = LongestAvailable, Most HandledContacts, ShortestAverage Handle Time,Most Skilled, LeastSkilled, Most Skilled byWeight, Least Skilled byWeight, Most Skilled byOrder, Least Skilled byOrder.

stringselectionCriteria

Cisco Unified Contact Center Express Developer Guide, Release 10.5 71

System Configuration APIsSkill or Resource Group Data Structure

Page 84: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Skill Details Data StructureDescriptionRestrictionsBase TypeAttributes

minOccurs = 0

maxOccurs = 1

(extension)skillCompetency

Skills within a CSQ canbe assigned weights. Thisfield is used in theweighted skill calculationof the skill-based resourceselection algorithm.

Default value is 1.

minOccurs = 0

maxOccurs = 1

nillable = false

default = 1

minInclusive = 1

maxInclusive = 1000

intweight

Skills within a CSQ canbe ordered. This field isused in the order skillcalculation of theskill-based resourceselection algorithm.

Default value is 1.

minOccurs = 0

maxOccurs = 1

nillable = false

baseIdIntorder

Resource Group Lists Data StructureDescriptionRestrictionsBase TypeAttribute

Name of the resourcegroup, as set up in theUnified CCXAdministration.

minOccurs = 1

maxOccurs = 1

nillable = false

nameUriPairresourceGroupNameUriPair

Resource pool selectionmodel that is set up in theUnified CCXAdministration.

minOccurs = 1

maxOccurs = 1

Enumerations=LongestAvailable, Linear,Circular, Most HandledContacts, and ShortestAverage Handle Time.

stringselectionCriteria

Order in which theresource resides withinthe resource group.

minOccurs = 0

maxOccurs = unbounded

nillable = false

resourceOrderresourceAndOrder

Cisco Unified Contact Center Express Developer Guide, Release 10.572

System Configuration APIsSkill Details Data Structure

Page 85: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Resource Order Data StructureDescriptionRestrictionsBase TypeAttributes

Name of the resource.

Resource groups arecollections of agents thatyour CSQ uses to handleincoming calls.

minOccurs = 1

maxOccurs = 1

nillable = false

nameUriPairresource

Order in which theresource resides withinthe resource group.

minOccurs = 0

maxOccurs = 1

nillable = false

baseIdIntorder

Get List of CSQsGETHTTP Method

http://<server>/adminapi/csqURI

http://uccx-server/adminapi/csqExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><csqs><csq><self>https://uccx-server/adminapi/csq/1</self><id>1</id><name>Auto_Sanity_CSQ</name><queueType>VOICE</queueType><queueAlgorithm>FIFO</queueAlgorithm><autoWork>false</autoWork><wrapupTime>0</wrapupTime><resourcePoolType>SKILL_GROUP</resourcePoolType><serviceLevel>5</serviceLevel><serviceLevelPercentage>70</serviceLevelPercentage><poolSpecificInfo><skillGroup>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 73

System Configuration APIsResource Order Data Structure

Page 86: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<skillCompetency><competencelevel>5</competencelevel><skillNameUriPair name="chat"><refURL>https://<uccxip>/adminapi/Skill/2</refURL></skillNameUriPair><weight>1</weight></skillCompetency><selectionCriteria>Longest Available</selectionCriteria></skillGroup></poolSpecificInfo></csq><csq><self>https://uccx-server/adminapi/csq/2</self><id>2</id><name>icdcsq</name><queueType>VOICE</queueType><queueAlgorithm>FIFO</queueAlgorithm><autoWork>false</autoWork><wrapupTime>0</wrapupTime><resourcePoolType>SKILL_GROUP</resourcePoolType><serviceLevel>5</serviceLevel><serviceLevelPercentage>70</serviceLevelPercentage><poolSpecificInfo><skillGroup><skillCompetency><competencelevel>5</competencelevel><skillNameUriPair name="icd"><refURL>https://uccx-server/adminapi/Skill/3</refURL></skillNameUriPair><weight>1</weight></skillCompetency><selectionCriteria>Longest Available</selectionCriteria></skillGroup></poolSpecificInfo></csq><csq><self>https://uccx-server/adminapi/csq/3</self><id>3</id><name>outboundCsq</name><queueType>VOICE</queueType><queueAlgorithm>FIFO</queueAlgorithm><autoWork>false</autoWork><wrapupTime>0</wrapupTime><resourcePoolType>SKILL_GROUP</resourcePoolType><serviceLevel>5</serviceLevel><serviceLevelPercentage>70</serviceLevelPercentage><poolSpecificInfo><skillGroup><skillCompetency><competencelevel>5</competencelevel><skillNameUriPair name="ob_skill"><refURL>https://uccx-server/adminapi/Skill/4</refURL></skillNameUriPair><weight>1</weight></skillCompetency><selectionCriteria>Longest Available</selectionCriteria></skillGroup></poolSpecificInfo></csq>

</csqs>

Get CSQGETHTTP Method

http://<server>/adminapi/csq/{id}URI

Cisco Unified Contact Center Express Developer Guide, Release 10.574

System Configuration APIsGet CSQ

Page 87: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/csq/22Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><csq><self>https://uccx-server/adminapi/csq/3</self><id>3</id><name>outboundCsq</name><queueType>VOICE</queueType><queueAlgorithm>FIFO</queueAlgorithm><autoWork>false</autoWork><wrapupTime>0</wrapupTime><resourcePoolType>SKILL_GROUP</resourcePoolType><serviceLevel>5</serviceLevel><serviceLevelPercentage>70</serviceLevelPercentage><poolSpecificInfo><skillGroup><skillCompetency><competencelevel>5</competencelevel><skillNameUriPair name="ob_skill"><refURL>https://uccx-server/adminapi/Skill/4</refURL></skillNameUriPair><weight>1</weight></skillCompetency><selectionCriteria>Longest Available</selectionCriteria></skillGroup></poolSpecificInfo></csq>

Create CSQPOSTHTTP Method

http://<server>/adminapi/csqURI

http://uccxserver/adminapi/csqExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 409, 412HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 75

System Configuration APIsCreate CSQ

Page 88: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

HTTP/1.1 201 Created

Sample Input XML—Create a CSQ (POST)

<csq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="csq.xsd">

<self href="" rel="" type="" /><name>vcsq1</name><queueType>VOICE</queueType><queueAlgorithm>FIFO</queueAlgorithm><autoWork>true</autoWork><wrapupTime>1</wrapupTime><resourcePoolType>SKILL_GROUP</resourcePoolType><serviceLevel>5</serviceLevel><serviceLevelPercentage>70</serviceLevelPercentage><poolSpecificInfo>

<skillGroup><skillCompetency>

<competencelevel>5</competencelevel><skillNameUriPair name="skill1">

<refURL>URL</refURL></skillNameUriPair><weight>1</weight></skillCompetency><skillCompetency>

<competencelevel>5</competencelevel><skillNameUriPair name="skill2">

<refURL>URL</refURL></skillNameUriPair><weight>1</weight>

</skillCompetency><selectionCriteria>Longest Available</selectionCriteria>

</skillGroup></poolSpecificInfo>

</csq>

Modify CSQPUTHTTP Method

http://<server>/adminapi/csq/{id}URI

http://uccxserver/adminapi/csq/22Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.576

System Configuration APIsModify CSQ

Page 89: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

HTTP/1.1 200 OK

Sample Input XML—Modify a CSQ (PUT)

<csq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="csq.xsd">

<self href="" rel="" type="" /><name>Modifiedchatcsq</name><queueType>CHAT</queueType><queueAlgorithm>FIFO</queueAlgorithm><resourcePoolType>SKILL_GROUP</resourcePoolType><poolSpecificInfo>

<skillGroup><skillCompetency>

<competencelevel>8</competencelevel><skillNameUriPair name="skill1">

<refURL>URL</refURL></skillNameUriPair><weight>1</weight>

</skillCompetency><skillCompetency>

<competencelevel>10</competencelevel><skillNameUriPair name="skill2">

<refURL>URL</refURL></skillNameUriPair><weight>1</weight>

</skillCompetency><selectionCriteria>Longest Available</selectionCriteria>

</skillGroup></poolSpecificInfo>

</csq>

Delete CSQDELETEHTTP Method

http://<server>/adminapi/csq/{id}URI

http://uccxserver/adminapi/csq/22Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 409HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Cisco Unified Contact Center Express Developer Guide, Release 10.5 77

System Configuration APIsDelete CSQ

Page 90: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data SourceData sources are databases that are configured to communicate with the Unified CCX system.

Data Structure for Data SourceDescriptionRestrictionsBase TypeAttribute Name

Unique identifier for the datasource

minOccurs = 0

maxOccurs = 1

nillable = false

intid

Unique name for the data sourceminLength value = 1

maxLength value = 65

minOccurance = 1

maxOccurance = 1

Data source name containsalphanumeric characters, spaces,underscores (_), hyphens (-), plussigns (+), pipes (|), colons (:),periods (.), and slashes (/) withoutleading or trailing white spaces.

stringname

Username that is defined forconnecting to the enterprisedatabase

minLength value = 1

maxLength value = 128

minOccurences = 1

maxOccurences = 1

Special characters like | , {, }, <, >,', \", (, ), \\ , /, %, \+, ?, \*, &, andcomma are not allowed.

stringuserName

Password that is defined forconnecting to the enterprisedatabase

minLength value = 1

maxLength value = 128

minOccurences = 1

Special characters like &, \", <, >,\', %, and comma are not allowed.

stringpassword

Maximum number of connectionsthat are allowed to connect to thedatabase

minInclusive value = 2

maxInclusive value = 10000

minOccurences = 1

intmaxConnection

Cisco Unified Contact Center Express Developer Guide, Release 10.578

System Configuration APIsData Source

Page 91: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Driver for this data source tocommunicate to the enterprisedatabase

enumeration

• oracle.jdbc.driver.OracleDriver

• com.ibm.db2.jcc.DB2Driver

• net.soureforge.jtds.jdbc.Driver

• com.sysbase.jdbc2.jdbc.SybDriver

stringdriver

JDBC URL that is used to obtain aconnection to the enterprisedatabase

minLength value = 1

maxLength value = 256

minOccurences = 1

stringjdbcURL

Get List of Data SourcesGETHTTP Method

http://<server>/adminapi/datasourceURI

http://uccx-server/adminapi/datasourceExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Code

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes"?><datasources><datasource><self>URL</self><id>15</id><name>oracle1</name><userName>System</userName><password>MTJDY2J1MTI=</password><maxConnection>10</maxConnection><driver>oracle.jdbc.driver.OracleDriver</driver><jdbcURL>jdbc:oracle:thin://@uccx-server:1521/XE</jdbcURL></datasource></datasources>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 79

System Configuration APIsGet List of Data Sources

Page 92: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get Data SourceGETHTTP Method

http://<server>/adminapi/dataSource/{id}URI

http://uccx-server/adminapi/dataSource/21Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Code

HTTP/1.1 404 Not FoundError Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes"?><DataSource><self>http://uccx-server/adminapi/dataSource/</self><id>15</id><name>oracle1</name><userName>System</userName><password>MTJDY2J1MTI=</password><maxConnection>10</maxConnection><driver>oracle.jdbc.driver.OracleDriver</driver><jdbcURL>jdbc:oracle:thin://@uccx-server:1521/XE</jdbcURL></DataSource>

Create Data SourcePOSTHTTP Method

http://<server>/adminapi/dataSourceURI

http://uccx-server/adminapi/dataSourceExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

400, 401, 405HTTP Failure Code

HTTP/1.1 400 Bad RequestError Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.580

System Configuration APIsGet Data Source

Page 93: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Create DataSource (POST)

<?xml version="1.0" encoding="UTF-8"?><DataSource>

<name>oracle1</name><userName>System</userName><password>MTJDY2J1MTI=</password><maxConnection>10</maxConnection><driver>oracle.jdbc.driver.OracleDriver</driver><jdbcURL>jdbc:oracle:thin://@uccx-server:1521/XE</jdbcURL>

</DataSource>

Modify Data SourcePUTHTTP Method

http://<server>/adminapi/dataSource/{id}URI

http://uccx-server/adminapi/dataSource/21Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

400, 401, 404, 405HTTP Failure Code

HTTP/1.1 400 Bad RequestError Codes

Success Response

HTTP/1.1 200 OK

Sample Input XML—Modify DataSource (PUT)

<?xml version="1.0" encoding="UTF-8"?><DataSource>

<self>URL</self><id>15</id><name>oracle1</name><userName>System2</userName><password>MTJDY2J1MTI=</password><maxConnection>10</maxConnection><driver>oracle.jdbc.driver.OracleDriver</driver><jdbcURL>jdbc:oracle:thin://@uccx-server:1521/XE</jdbcURL>

</DataSource>

Delete Data SourceDELETEHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.5 81

System Configuration APIsModify Data Source

Page 94: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/dataSource/{id}URI

http://uccx-server/adminapi/dataSource/21Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Code

HTTP/1.1 404 Not FoundError Codes

Success Response

HTTP/1.1 200 OK

Test Connection for Data SourceGETHTTP Method

http://<server>/adminapi/dataSource/{id}/testConnectionURI

http://uccx-server/adminapi/dataSource/30/testConnectionExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Code

<?xml version="1.0" encoding="UTF-8"standalone="yes"?><DatabaseTestResult><testResult>false</testResult></DatabaseTestResult>

Error Codes

Success Response

HTTP/1.1 200 OK

Dialog GroupA dialog group is a pool of dialog channels in which each channel is used to perform dialog interactions witha caller, during which the caller responds to automated prompts by pressing buttons on a touchtone phone.

Cisco Unified Contact Center Express Developer Guide, Release 10.582

System Configuration APIsTest Connection for Data Source

Page 95: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for Dialog GroupDescriptionRestrictionsBase TypeAttribute Name

Numeric identifier of theapplication

Min Value = 0

Max Value = 65535

Multiplicity = Required

intid

Descriptor for the dialog groupMin length = 1

Max length = 80

Multiplicity = Required

Dialog Group Descriptioncontains alphanumericcharacters, specialcharacters, spaces,underscores (_), andhyphens (-) without leadingor trailing white spaces.

stringdialogGroupDesc

Type of the group, correspondingto type of the channels that aremanaged by the group as definedsince CRS 3.0

Multiplicity = Required

Enumeration =

• Cisco MediaTermination

• MRCP ASR

stringgroupType

Media termination valueMin length = 1

Max length = 65535

Multiplicity = Required

Cisco MediaTermination

Cisco MediaTermination

Value for MRCPASRMin length = 1

Max length = 20

Multiplicity = Required

Nillable = False

MRCPASR containsalphanumeric characters,special characters, spaces,underscores (_), andhyphens (-) without leadingor trailing white spaces.

MRCPASRMRCPASR

Cisco Unified Contact Center Express Developer Guide, Release 10.5 83

System Configuration APIsData Structure for Dialog Group

Page 96: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get List of Dialog GroupsGETHTTP Method

http://<server>/adminapi/dialogGroupURI

http://uccx-server/adminapi/dialogGroupExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><dialogGroups><dialogGroup><self>https://uccx-server/adminapi/dialogGroup/0</self><id>0</id><dialogGroupDesc>Default</dialogGroupDesc><groupType>Cisco Media Channel</groupType><CiscoMediaTermination><channels>300</channels></CiscoMediaTermination></dialogGroup><dialogGroup><self>https://uccx-server/adminapi/dialogGroup/1</self><id>1</id><dialogGroupDesc>CMT Auto#8</dialogGroupDesc><groupType>Cisco Media Channel</groupType><CiscoMediaTermination><channels>1</channels></CiscoMediaTermination></dialogGroup></dialogGroups>

Get Dialog GroupGETHTTP Method

http://<server>/adminapi/dialogGroup/<dialog group id>URI

http://uccx-server/adminapi/dialogGroup/1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

Cisco Unified Contact Center Express Developer Guide, Release 10.584

System Configuration APIsGet List of Dialog Groups

Page 97: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><dialogGroup><self>https://uccx-server/adminapi/dialogGroup/1</self><id>1</id><dialogGroupDesc>CMT Auto#8</dialogGroupDesc><groupType>Cisco Media Channel</groupType><CiscoMediaTermination><channels>1</channels></CiscoMediaTermination></dialogGroup>

Create Dialog GroupPOSTHTTP Method

http://<server>/adminapi/dialogGroupURI

http://uccx-server/adminapi/dialogGroupExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 409HTTP Failure Code

—Error Codes

Success Response

HTTP/1.1 201 Created

Modify Dialog GroupPUTHTTP Method

http://<server>/adminapi/dialogGroupURI

http://uccx-server/adminapi/dialogGroup/1Example URI

Application/XML, Application/JSONContent Type

Cisco Unified Contact Center Express Developer Guide, Release 10.5 85

System Configuration APIsCreate Dialog Group

Page 98: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Delete Dialog GroupDELETEHTTP Method

http://<server>/adminapi/dialogGroup/<dialog group id>URI

http://uccx-server/adminapi/dialogGroup/1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success code

401, 404, 412HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Files (Script, Prompt, Grammar, and Document)Unified CCX applications can make use of many auxiliary files that interact with callers, such as scripts,pre-recorded prompts, grammars, and custom Java classes.

To manage these auxiliary files, you must complete the following tasks:

• Provision telephony and media resources.

• Provision Unified CCX subsystem, if required.

• Provision additional subsystems, if required.

• Configure Cisco script applications.

Cisco Unified Contact Center Express Developer Guide, Release 10.586

System Configuration APIsDelete Dialog Group

Page 99: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for FilesDescriptionRestrictionsBase TypeAttribute Name

Auxiliary files.minOccurs = 1

maxOccurs =unbounded

xs: stringScript | Prompt |

Grammar |Document |

AARDocument

Path of the current item with respect to theroot folder.

minOccurs = 0

maxOccurs =unbounded

xs: stringFolder

File information.minOccurs = 0

maxOccurs =unbounded

xs: stringFile

Details about the language.minOccurs = 0

maxOccurs =unbounded

xs: stringLanguageDetails

Regex:

([^<>%&*| ':?"])+

nillable = falsexs: stringPath

Name of the file.

Regex:

([^<>%&*|':?"])+

nillable = falsexs: stringFileName

minOccurs = 0

maxOccurs = 1

xs: stringDetails

Lets you rename an existing file.minOccurs = 0

maxOccurs = 1

xs: stringReNameTo

minLength = 1

maxLength = 64

xs: stringAARFileName

Regex:

([^<>%&*()|{},/ '+?"])+

nillable = falsexs: stringLanguageName

Regex:

([^<>%&*|/ ':?"])+

nillable = falsexs: stringFolderName

Cisco Unified Contact Center Express Developer Guide, Release 10.5 87

System Configuration APIsData Structure for Files

Page 100: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

The size of the file prefixed with KB. The filesize is converted from bytes to KB.

nillable = truexs: stringSize

The date and time when the document waslast uploaded or changed along with timezone.

nillable = truexs: stringDateModified

The user ID of the person who performedthese modifications.

nillable = truexs: stringmodifiedBy

Create a New Language for PromptPOSTHTTP Method

http://<server>/adminapi/promptURI

http://uccx-server/adminapi/promptExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Language<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Prompt><LanguageDetails><path>/</path><LanguageName>FTCustomPromptLanguage1</LanguageName>

</LanguageDetails></Prompt>

</Files>

Create a New Language for DocumentPOSTHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.588

System Configuration APIsCreate a New Language for Prompt

Page 101: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/documentURI

http://uccx-server/adminapi/documentExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Language<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Document><LanguageDetails><path>/</path><LanguageName>FTCustomDocLanguage1</LanguageName>

</LanguageDetails></Document>

</Files>

Create a New Language for GrammarPOSTHTTP Method

http://<server>/adminapi/grammarURI

http://uccx-server/adminapi/grammarExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5 89

System Configuration APIsCreate a New Language for Grammar

Page 102: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML — Create a Language<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Grammar><LanguageDetails><path>/</path><LanguageName>FTCustomGrammarLanguage1</LanguageName>

</LanguageDetails></Grammar>

</Files>

Create a New Folder for ScriptPOSTHTTP Method

http://<server>/adminapi/scriptURI

http://uccx-server/adminapi/scriptExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Folder<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Script><Folder><path>/</path><FolderName>FTCustomScriptF1</FolderName></Folder>

</Script></Files>

Create a New Folder for PromptPOSTHTTP Method

http://<server>/adminapi/promptURI

http://uccx-server/adminapi/promptExample URI

Cisco Unified Contact Center Express Developer Guide, Release 10.590

System Configuration APIsCreate a New Folder for Script

Page 103: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Folder<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Prompt><Folder><path>/FTCustomPromptLanguage1</path><FolderName>FTCustomPromptFolder1</FolderName></Folder>

</Prompt></Files>

Create a New Folder for DocumentPOSTHTTP Method

http://<server>/adminapi/documentURI

http://uccx-server/adminapi/documentExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5 91

System Configuration APIsCreate a New Folder for Document

Page 104: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML — Create a Folder

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Document><Folder><path>/FTCustomDocLanguage1</path><FolderName>FTCustomDocFolder1</FolderName></Folder>

</Document></Files>

Create a New Folder for GrammarPOSTHTTP Method

http://<server>/adminapi/grammarURI

http://uccx-server/adminapi/grammarExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 No Content

Sample Input XML — Create a Folder

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Grammar><Folder><path>/FTCustomGrammarLanguage1</path><FolderName>FTCustomGrammarFolder1</FolderName></Folder>

</Grammar></Files>

Upload Files to a Temporary Folder for ScriptPOSTHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.592

System Configuration APIsCreate a New Folder for Grammar

Page 105: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/script/uploadFileURI

http://uccx-server/adminapi/script/uploadFileExample URI

multipart/form-dataContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Upload Files to a Temporary Folder for PromptPOSTHTTP Method

http://<server>/adminapi/prompt/uploadFileURI

http://uccx-server/adminapi/prompt/uploadFileExample URI

multipart/form-dataContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Upload Files to a Temporary Folder for DocumentPOSTHTTP Method

http://<server>/adminapi/document/uploadFileURI

http://uccx-server/adminapi/document/uploadFileExample URI

Cisco Unified Contact Center Express Developer Guide, Release 10.5 93

System Configuration APIsUpload Files to a Temporary Folder for Prompt

Page 106: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

multipart/form-dataContent Type

201HTTP Success Code

401, 405, and 500HTTP Failure Codes

HTTP/1.1 400 Bad RequestFailure Response

—Error Codes

Success Response

HTTP/1.1 201 Created

Upload Files to a Temporary Folder for GrammarPOSTHTTP Method

http://<server>/adminapi/grammar/uploadFileURI

http://uccx-server/adminapi/grammar/uploadFileExample URI

multipart/form-dataContent Type

201HTTP Success Code

401, 405, and 500HTTP Failure Codes

HTTP/1.1 400 Bad RequestFailure Response

—Error Codes

Success Response

HTTP/1.1 201 Created

Store Files in Database from a Temporary Folder for ScriptPOSTHTTP Method

http://<server>/adminapi/script/{FolderPath}URI

http://uccx-server/adminapi/script/FolderPathExample URI

Cisco Unified Contact Center Express Developer Guide, Release 10.594

System Configuration APIsUpload Files to a Temporary Folder for Grammar

Page 107: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, and 500HTTP Failure Codes

HTTP/1.1 400 Bad RequestFailure Response

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Configuration Object for a VXML File

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Script><File><path>/FTCustomScriptFolder/FTCustomScriptFolder1/</path><FileName>FTCustomScript3.vxml</FileName>

</File></Script>

</Files>

Store Files in Database from a Temporary Folder for PromptPOSTHTTP Method

http://<server>/adminapi/prompt/{FolderPath}URI

http://uccx-server/adminapi/prompt/FolderPathExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

HTTP/1.1 400 Bad RequestFailure Response

—Error Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5 95

System Configuration APIsStore Files in Database from a Temporary Folder for Prompt

Page 108: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML — Create a Configuration Object for a VXML File

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Prompt><File><path>/FTCustomPromptLanguage1/FTCustomPromptFolder1/</path><FileName>FTCustomPrompt3.vxml</FileName>

</File></Prompt>

</Files>

Store Files in Database from a Temporary Folder for DocumentPOSTHTTP Method

http://<server>/adminapi/document/{FolderPath}URI

http://uccx-server/adminapi/document/FolderPathExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Configuration Object for a VXML File

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Document><File><path>/FTCustomDocLanguage1/FTCustomDocFolder1/</path><FileName>FTCustomDoc3.vxml</FileName>

</File></Document>

</Files>

Store Files in Database from a Temporary Folder for GrammarPOSTHTTP Method

http://<server>/adminapi/grammar/{FolderPath}URI

Cisco Unified Contact Center Express Developer Guide, Release 10.596

System Configuration APIsStore Files in Database from a Temporary Folder for Document

Page 109: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/grammar/FolderPathExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML — Create a Configuration Object for a VXML File

<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Grammar><File><path>/FTCustomGrammarLanguage1/FTCustomGrammarFolder1/</path><FileName>FTCustomGrammar3.vxml</FileName>

</File></Grammar>

</Files>

Get List for Script Files and FolderGETHTTP Method

http://<server>/adminapi/scriptURI

http://uccx-server/adminapi/scriptExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<files><Script><Folder><path>/default/FTCustomScriptF11363861050449/</path><FolderName>FTCustomScriptF11363861050449</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:00 PM India

Cisco Unified Contact Center Express Developer Guide, Release 10.5 97

System Configuration APIsGet List for Script Files and Folder

Page 110: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Standard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details></Folder></Script></files>

Get List for Prompt Files and FolderGETHTTP Method

http://<server>/adminapi/promptURI

http://uccx-server/adminapi/promptExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<files><Prompt><Folder><path>/en/</path><FolderName>en</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:47:24 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details></Folder></Prompt></files>

Get List for Grammar Files and FolderGETHTTP Method

http://<server>/adminapi/grammarURI

http://uccx-server/adminapi/grammarExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.598

System Configuration APIsGet List for Prompt Files and Folder

Page 111: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response<files><Grammar><Folder><path>/en/</path><FolderName>en</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:47:24 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details></Folder></Grammar></files>

Get List for Document Files and FolderGETHTTP Method

http://<server>/adminapi/documentURI

http://uccx-server/adminapi/documentExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<Files><Document><Folder><path>/default/FTCustomDocF11363861050449/</path><FolderName>FTCustomScriptF11363861050449</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:00 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details>

</Folder></Document></Files>

Get Script Files and FolderGETHTTP Method

http://<server>/adminapi/script/{FilePath/FolderPath}FilePath is the fully qualified name of the file.FolderPath is the fully qualified name of thefolder.

NoteURI

Cisco Unified Contact Center Express Developer Guide, Release 10.5 99

System Configuration APIsGet List for Document Files and Folder

Page 112: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/script/FolderPath/

http://uccx-server/adminapi/script/FilePath/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<Files><Script><Folder><path>/FolderName//</path><FolderName>SUBFolderName</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:01 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details>

</Folder></Script></Files>

Get Prompt Files and FolderGETHTTP Method

http://<server>/adminapi/prompt/{FilePath/FolderPath}FilePath is the fully qualified name of the file.FolderPath is the fully qualified name of thefolder.

NoteURI

http://uccx-server/adminapi/prompt/FolderPath/

http://uccx-server/adminapi/prompt/FilePath/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<Files><Prompt><Folder><path>/FolderName//</path>

Cisco Unified Contact Center Express Developer Guide, Release 10.5100

System Configuration APIsGet Prompt Files and Folder

Page 113: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<FolderName>SUBFolderName</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:01 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details>

</Folder></Prompt></Files>

Get Grammar Files and FolderGETHTTP Method

http://<server>/adminapi/grammar/{FilePath/FolderPath}FilePath is the fully qualified name of the file.FolderPath is the fully qualified name of thefolder.

NoteURI

http://uccx-server/adminapi/grammar/FolderPath/

http://uccx-server/adminapi/grammar/FilePath/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<Files><Grammar><Folder><path>/FolderName//</path><FolderName>SUBFolderName</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:01 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details>

</Folder></Grammar></Files>

Get Document Files and FolderGETHTTP Method

http://<server>/adminapi/document/{FilePath/FolderPath}FilePath is the fully qualified name of the file.FolderPath is the fully qualified name of thefolder.

NoteURI

Cisco Unified Contact Center Express Developer Guide, Release 10.5 101

System Configuration APIsGet Grammar Files and Folder

Page 114: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/document/FolderPath/

http://uccx-server/adminapi/document/FilePath/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 500HTTP Failure Codes

—Error Codes

Success Response<Files><Document><Folder><path>/FolderName//</path><FolderName>SUBFolderName</FolderName><Details><size>0 KB</size><dateModified>03/21/2013 03:48:01 PM IndiaStandard Time</dateModified><modifiedBy>Administrator</modifiedBy></Details>

</Folder></Document></Files>

Get FreeSpace and UsedSpace for Script/Prompt/Grammar/DocumentGETHTTP Method

http://<server>/adminapi/ResourceName}/space/{FolderPath}/

Where "ResourceName" is the "script/prompt/grammar/document" andFolderPath is a fully qualified name of the folder.

URI

http://uccx-server:8080/adminapi/prompt/space/default/

http://uccx-server:8080/adminapi/script/space/default/

http://uccx-server:8080/adminapi/document/space/default/

http://uccx-server:8080/adminapi/grammar/space/default/

Example URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 405, 500HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5102

System Configuration APIsGet FreeSpace and UsedSpace for Script/Prompt/Grammar/Document

Page 115: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

200 OK

Download Script/PromptGETHTTP Method

http://<server>/adminapi/ResourceName}/download/{FilePath}

Where "ResourceName" is the "script/prompt" and FilePath is a fullyqualified name of the file.

URI

http://uccx-server:8080/adminapi/prompt/download/default/beep.wav

http://uccx-server:8080/adminapi/script/download/default/icd_brkpt.aef

Example URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 405, 500HTTP Failure Codes

—Error Codes

Success Response

200 OK

Modify Script Folder NamePUTHTTP Method

http://<server>/adminapi/script/FolderPathURI

http://uccx-server/adminapi/script/folder/Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 103

System Configuration APIsDownload Script/Prompt

Page 116: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

Modify FilePUTHTTP Method

http://<server>/adminapi/{ResourceName}/FilePathURI

http://uccx-server/adminapi/{ResourceName}/file/ResourceName can be script, prompt, grammar, ordocument.

NoteExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Sample Input XML — Modifying a Script File Name<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="../adminapi/src/main/resources/xsd/Files.xsd"><Script><File><path>/</path><FileName>CustomScript1.aef</FileName><reNameTo>CustomScript1Mod.aef</reNameTo>

</File></Script>

</Files>

Sample Input XML — Refreshing a Script File Content<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="../adminapi/src/main/resources/xsd/Files.xsd"><Script><File><path>/</path><FileName>CustomScript1.aef</FileName><refresh>true</refresh>

</File></Script>

</Files>

Cisco Unified Contact Center Express Developer Guide, Release 10.5104

System Configuration APIsModify File

Page 117: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

If you want to upload the modified script file, upload the file first and use PUT operation to store theuploaded script.

If the refresh attribute is set to true, application immediately uses the uploaded script.

Note

Modify Prompt Folder Name or Language NamePUTHTTP Method

http://<server>/adminapi/prompt/FolderPath

http://<server>/adminapi/prompt/LanguagePath

URI

http://uccx-server/adminapi/prompt/language/

http://uccx-server/adminapi/prompt/folder/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Sample Input XML — Modifying a Folder<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd">

<Prompt><Folder><path>/PrmoptLanguage1</path><FolderName>PrmoptFolder1</FolderName><reNameTo>ModPrmoptFolder1</reNameTo>

</Folder></Prompt>

</Files>

Modify Grammar Folder Name or Language NamePUTHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.5 105

System Configuration APIsModify Prompt Folder Name or Language Name

Page 118: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/grammar/FolderPath

http://<server>/adminapi/grammar/LanguagePath

URI

http://uccx-server/adminapi/grammar/language/

http://uccx-server/adminapi/grammar/folder/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Sample Input XML — Renaming the Language<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Grammar><LanguageDetails><path>/</path><LanguageName>FTCustomDocLanguage1</LanguageName><reNameTo>FTCustomModDocLanguage1</reNameTo>

</LanguageDetails></Grammar>

</Files>

Sample Input XML — Renaming the Folder<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Grammar><Folder><path>/FTCustomModDocLanguage1</path><FolderName>FTCustomDocumentFolder1</FolderName><reNameTo>FTCustomModDocumentFolder1</reNameTo>

</Folder></Grammar>

</Files>

Modify Document Folder Name or Language NamePUTHTTP Method

http://<server>/adminapi/document/FolderPath

http://<server>/adminapi/document/LanguagePath

URI

Cisco Unified Contact Center Express Developer Guide, Release 10.5106

System Configuration APIsModify Document Folder Name or Language Name

Page 119: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/document/language/

http://uccx-server/adminapi/document/folder/

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Sample Input XML — Renaming the Language<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Document><LanguageDetails><path>/</path><LanguageName>FTCustomDocLanguage1</LanguageName><reNameTo>FTCustomModDocLanguage1</reNameTo>

</LanguageDetails></Document>

</Files>

Sample Input XML — Renaming the Folder<?xml version="1.0" encoding="UTF-8"?><Files xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Files.xsd"><Document><Folder><path>/FTCustomModDocLanguage1</path><FolderName>FTCustomDocumentFolder1</FolderName><reNameTo>FTCustomModDocumentFolder1</reNameTo>

</Folder></Document>

</Files>

Delete Script Files and FolderDELETEHTTP Method

http://<server>/adminapi/script/{File/FolderPath}URI

http://uccx-server/adminapi/script/folder/

http://uccx-server/adminapi/script/folder/Test.aef

Example URI

Application/XML, Application/JSONContent Type

Cisco Unified Contact Center Express Developer Guide, Release 10.5 107

System Configuration APIsDelete Script Files and Folder

Page 120: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Delete Prompt Files and FolderDELETEHTTP Method

http://<server>/adminapi/prompt/{File/FolderPath}URI

http://uccx-server/adminapi/prompt/folder/

http://uccx-server/adminapi/prompt/folder/Test.wav

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

Delete Grammar Files and FolderDELETEHTTP Method

http://<server>/adminapi/grammar/{File/FolderPath}URI

http://uccx-server/adminapi/grammar/folder/

http://uccx-server/adminapi/grammar/folder/Test.grxml

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

Cisco Unified Contact Center Express Developer Guide, Release 10.5108

System Configuration APIsDelete Prompt Files and Folder

Page 121: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

404, 500HTTP Failure Codes

—Error Codes

Success Response

Delete Document Files and FolderDELETEHTTP Method

http://<server>/adminapi/document/{File/FolderPath}URI

http://uccx-server/adminapi/document/folder/

http://uccx-server/adminapi/document/Test.vxml

Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

404, 500HTTP Failure Codes

—Error Codes

Success Response

HTTP TriggerAn HTTP trigger is the relative URL a user enters into the client browser to start the application. You canupload either eXtensible Style Language Transformation (XSLT) templates or Java Server Pages (JSP)templates to serve as your HTTP trigger.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 109

System Configuration APIsDelete Document Files and Folder

Page 122: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for HTTP TriggerDescriptionRestrictionsBase TypeAttribute Name

Name of the HTTP TriggerMin length = 2

Max length = 45

HTTP Trigger name startswith / character and containsalphanumeric and specialcharacters such as-#%&amp;=.\?/ characterswithout leading and trailingwhite-space characters.

stringname

Name of applicationnillable = false

minOccurs = 1

minOccurs = 1

nameUriPairapplication

Maximum number of sessionsnillable = false

minOccurs = 1

minOccurs = 1

baseIdIntmaxSessions

Idle timeout valuenillable = false

minOccurs = 0

minOccurs = 1

default = 1000

idleTimeoutidleTimeout

Defines the localeMin length = 1

Max length = 50

Locale containsalphanumeric characters,special characters, spaces,underscores (_), andhyphens (-) without leadingor trailing white spaces.

stringlocale

Indicates if the HTTP Trigger isenabled

default = truebooleanenabled

Cisco Unified Contact Center Express Developer Guide, Release 10.5110

System Configuration APIsData Structure for HTTP Trigger

Page 123: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML

<?xml version="1.0" encoding="UTF-8"?><httpTrigger><self>URL</self><name>/test</name><application name="app1"><refURL>URL</refURL></application><maxSessions>1</maxSessions><idleTimeout>1000</idleTimeout><locale>en_US</locale><enabled>true</enabled></httpTrigger>

Get List of HTTP TriggersGETHTTP Method

http://<server>/adminapi/httpTriggerURI

http://uccx-server/adminapi/httpTriggerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><httpTriggers><httpTrigger><self>https://uccx-server/adminapi/httpTrigger/redirect_Cisco</self><name>/redirect_Cisco</name><application name="Auto_App_HTTP"><refURL>https://uccx-server/adminapi/application/Auto_App_HTTP</refURL></application><maxSessions>10</maxSessions><idleTimeout>2000</idleTimeout><locale>en_US</locale><enabled>true</enabled></httpTrigger><httpTrigger><self>https://uccx-server/adminapi/httpTrigger/Trigger1355924928134</self><name>/Trigger1355924928134</name><application name="ForHttpTriggerFT"><refURL>https://uccx-server/adminapi/application/ForHttpTriggerFT</refURL></application><maxSessions>1</maxSessions><idleTimeout>1</idleTimeout><locale>en_US</locale><enabled>true</enabled></httpTrigger><httpTrigger>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 111

System Configuration APIsGet List of HTTP Triggers

Page 124: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

<self>https://uccx-server/adminapi/httpTrigger/Trigger</self><name>/Trigger</name><application name="ForHttpTriggerFT"><refURL>https://uccx-server/adminapi/application/ForHttpTriggerFT</refURL></application><maxSessions>1</maxSessions><idleTimeout>1</idleTimeout><locale>en_US</locale><enabled>true</enabled></httpTrigger><httpTrigger><self>https://uccx-server/adminapi/httpTrigger/Trigger1355924936759</self><name>/Trigger1355924936759</name><application name="ForHttpTriggerFT"><refURL>https://uccx-server/adminapi/application/ForHttpTriggerFT</refURL></application><maxSessions>15</maxSessions><idleTimeout>1500</idleTimeout><locale>en</locale><enabled>false</enabled></httpTrigger></httpTriggers>

Get HTTP TriggerGETHTTP Method

http://<server>/adminapi/httpTrigger/{httpTriggerName}URI

http://uccx-server/adminapi/httpTriggerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><httpTrigger><self>https://uccx-server/adminapi/httpTrigger/redirect_Cisco</self><name>/redirect_Cisco</name><application name="Auto_App_HTTP"><refURL>https://uccx-server/adminapi/application/Auto_App_HTTP</refURL></application><maxSessions>10</maxSessions><idleTimeout>2000</idleTimeout><locale>en_US</locale><enabled>true</enabled></httpTrigger>

Cisco Unified Contact Center Express Developer Guide, Release 10.5112

System Configuration APIsGet HTTP Trigger

Page 125: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Create HTTP TriggerPOSTHTTP Method

http://<server>/adminapi/httpTriggerURI

http://uccx-server/adminapi/httpTriggerExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Modify HTTP TriggerPUTHTTP Method

http://<server>/adminapi/httpTrigger/{httpTriggerName}URI

http://uccx-server/adminapi/httpTrigger/TestHttpTriggerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Delete HTTP TriggerDELETEHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.5 113

System Configuration APIsCreate HTTP Trigger

Page 126: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/httpTrigger/{httpTriggerName}URI

http://uccx-server/adminapi/httpTrigger/TestHttpTriggerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Recording ConfigurationConfigures the recording server.

Data Structure for Recording ConfigurationDescriptionRestrictionsBase TypeAttribute Name

FullyQualifiedDomainName (FQDN)of host1.

minOccurs = 1

maxOccurs = 1

stringhost1

Fully Qualified Domain Name ofhost2.

minOccurs = 0

maxOccurs = 1

stringhost2

User name must be a MediaSense APIuser. API user name is a Unified CMend user, who is configured in CiscoMediaSense as aMediaSenseAPI user.

minOccurs = 1

maxOccurs = 1

minLength = 1

maxLength = 128

stringuserName

Password to connect to the RecordingServer.

API does not accept the blankpassword for the first time.Sending blank password thenext time, retains the previouspassword.

Note

minOccurs = 1

maxOccurs = 1

maxLength = 127

stringpassword

Cisco Unified Contact Center Express Developer Guide, Release 10.5114

System Configuration APIsRecording Configuration

Page 127: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get Recording Configuration InformationGETHTTP Method

http://<server>/adminapi/recordingConfigurationURI

http://<server>/adminapi/recordingConfigurationExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 412HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?>

<recordingConfiguration><host1>host1.cisco.com</host1><host2>host2.cisco.com</host2><userName>admin</userName><password></password>

</recordingConfiguration>

Modify Recording Configuration InformationPUTHTTP Method

http://<server>/adminapi/recordingConfigurationURI

http://<server>/adminapi/recordingConfigurationExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405, 412HTTP Failure Codes

—Error Codes

Success ResponseHTTP/1.1 200 OK

Cisco Unified Contact Center Express Developer Guide, Release 10.5 115

System Configuration APIsGet Recording Configuration Information

Page 128: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML — Modify Recording Configuration Information (PUT)<?xml version="1.0" encoding="UTF-8"?><recordingConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="recordingConfiguration.xsd"><self>self</self><host1>host1.cisco.com</host1><host2>host2.cisco.com</host2><userName>userName</userName><password>password</password></recordingConfiguration>

ResourceThe Unified CCX system creates a new record in the Resource table when the Unified CCX system retrievesagent information from the Unified CM. A Resource record contains information about the resource (agent).One such record exists for each active and inactive resource.

Data Structure for ResourceDescriptionRestrictionsBase TypeAttribute Name

Numeric identifier of the resourceminOccurs = 1

maxOccurs = 1

nillable = false

intresourceId

Numeric identifier of userminOccurs = 1

maxOccurs = 1

nillable = false

stringuserID

Full name of the userminOccurs = 1

maxOccurs = 1

nillable = false

stringfullName

Last name of the userminOccurs = 1

maxOccurs = 1

nillable = false

stringlastName

Cisco Unified Contact Center Express Developer Guide, Release 10.5116

System Configuration APIsResource

Page 129: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Alias name of agent is displayedto the customer when on chat.

minOccurs = 0

maxOccurs = 1

nillable = false

minLength = 0

maxLength = 31

Alias contains alphanumericcharacters and the specialcharacters hyphens (-),periods (.), and underscores(_), except at the beginningand at the end of the aliasname.

stringalias

Extension of the userminOccurs = 1

maxOccurs = 1

nillable = false

stringextension

Group of the resourceminOccurs = 1

maxOccurs = 1

nillable = true

nameUriPairresourceGroup

Mapping of skills of the resourceminOccurs = 1

maxOccurs = 1

nillable = false

skillMapskillMap

Availability of resource—booleanautoAvailable

Type of resourceminOccurs = 1

maxOccurs = 1

nillable = false

resourceTypetype

Name of the teamminOccurs = 1

maxOccurs = 1

nillable = false

nameUriPairteam

Primary supervisorminOccurs = 1

maxOccurs = 1

nillable = true

supervisorOfprimarySupervisorOf

Cisco Unified Contact Center Express Developer Guide, Release 10.5 117

System Configuration APIsData Structure for Resource

Page 130: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Secondary supervisorminOccurs = 1

maxOccurs = 1

nillable = true

supervisorOfsecondarySupervisorOf

Get List of Resourceshttp://<server>/adminapi/resourceURI

http://uccx-server/adminapi/resourceExample URI

GETHTTP Method

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><resources><resource><self>http://uccx-server/adminapi/resource/agent1333</self><userID>agent1333</userID><firstName></firstName><lastName>agent1333</lastName><extension>2244333</extension><alias>uccx</alias><skillMap><skillCompetency><competencelevel>5</competencelevel><skillNameUriPair name="OBAgentSkill"><refURL>http://uccx-server/adminapi/skill/3</refURL>

</skillNameUriPair></skillCompetency>

</skillMap><autoAvailable>true</autoAvailable><type>1</type><team name="Default"><refURL>http://uccx-server/adminapi/team/1</refURL></team><primarySupervisorOf/><secondarySupervisorOf/>

</resource></resources>

Cisco Unified Contact Center Express Developer Guide, Release 10.5118

System Configuration APIsGet List of Resources

Page 131: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get Resourcehttp://<server>/adminapi/resource/{id}URI

http://uccx-server/adminapi/resource/12Example URI

GETHTTP Method

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

The ID in the URI is the user ID of a particular resource. The resource in the Unified CommunicationsManager environment is an end user. The user ID in Unified CCX can include all the special charactersexcept the forward slash (/) and the backslash (\).

Note

Success Response<resource><self>https://uccx-server/adminapi/resource/uccxautosup1</self><userID>uccxautosup1</userID><firstName /><lastName>uccxautosup1</lastName><extension>6003</extension><skillMap /><autoAvailable>true</autoAvailable><type>2</type><team name="Team123"><refURL>https://uccx-server/adminapi/team/1</refURL></team><primarySupervisorOf><supervisorOfTeamName name="Team123"><refURL>https://uccx-server/adminapi/team/1</refURL></supervisorOfTeamName><supervisorOfTeamName name="tempteam1"><refURL>https://uccx-server/adminapi/team/3</refURL></supervisorOfTeamName><supervisorOfTeamName name="tempteam3"><refURL>https://uccx-server/adminapi/team/5</refURL></supervisorOfTeamName><supervisorOfTeamName name="chatTeamchatTeamchatTeamchatTeam"><refURL>https://uccx-server/adminapi/team/7</refURL></supervisorOfTeamName><supervisorOfTeamName name="TeamTest1213497663301901355924770962"><refURL>https://uccx-server/adminapi/team/9</refURL></supervisorOfTeamName><supervisorOfTeamName name="TeamTest1213497663301901355924777915"><refURL>https://uccx-server/adminapi/team/10</refURL></supervisorOfTeamName><supervisorOfTeamName name="Team123"><refURL>https://uccx-server/adminapi/team/11</refURL>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 119

System Configuration APIsGet Resource

Page 132: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

</supervisorOfTeamName></primarySupervisorOf><secondarySupervisorOf><supervisorOfTeamName name="tempteam2"><refURL>https://uccx-server/adminapi/team/4</refURL></supervisorOfTeamName><supervisorOfTeamName name="tempteam4"><refURL>https://uccx-server/adminapi/team/6</refURL></supervisorOfTeamName></secondarySupervisorOf></resource>

Modify Resourcehttp://<server>/adminapi/resource/{id}URI

http://uccx-server/adminapi/resource/{id}Example URI

PUTHTTP Method

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

The ID in the URI is the user ID of a particular resource. The resource in the Unified CommunicationsManager environment is an end user. The user ID in Unified CCX can include all the special charactersexcept the forward slash (/) and the backslash (\).

Note

Success Response

Resource GroupResource groups are collections of agents that the CSQ uses to handle incoming calls. To useresource-group-based CSQs, you must specify a resource group.

Cisco Unified Contact Center Express Developer Guide, Release 10.5120

System Configuration APIsModify Resource

Page 133: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for Resource GroupDescriptionsRestrictionsBase TypeAttribute Name

Unique identifier for the resourcegroup.

Noneintid

Name of the resource group as set upin Unified CCX administration.

minLength value = 1

maxLength value = 30

Occurences = 1

Resource Group name containsalphanumeric characters,spaces, underscores (_), andhyphens (-) without leading ortrailing white spaces.

stringname

Get List of Resource GroupsGETHTTP Method

http://<server>/adminapi/resourceGroupURI

http://uccx-server/adminapi/resourceGroupExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><resourceGroups><resourceGroup><self>https://uccx-server/adminapi/resourceGroup/4</self><id>4</id><name>Auto_RG</name></resourceGroup><resourceGroup><self>https://uccx-server/adminapi/resourceGroup/7</self><id>7</id><name>rg1</name></resourceGroup></resourceGroups>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 121

System Configuration APIsData Structure for Resource Group

Page 134: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Get Resource GroupGETHTTP Method

http://<server>/adminapi/resourceGroup/{id}URI

http://uccx-server/adminapi/resourceGroup/22Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><resourceGroup><self>https://uccx-server/adminapi/resourceGroup/7</self><id>7</id><name>rg1</name></resourceGroup>>

Create Resource GroupPOSTHTTP Method

http://<server>/adminapi/resourceGroupURI

http://uccx-server/adminapi/resourceGroupExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response

HTTP/1.1 201 Created

Cisco Unified Contact Center Express Developer Guide, Release 10.5122

System Configuration APIsGet Resource Group

Page 135: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Sample Input XML—Create Resource Group (POST)

<?xml version="1.0" encoding="UTF-8"?><ResourceGroup>

<self/><name>Group-02</name>

</ResourceGroup>

Modify Resource GroupPUTHTTP Method

http://<server>/adminapi/resourceGroup/{id}URI

http://uccx-server/adminapi/resourceGroup/21Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

HTTP/1.1 400 Bad RequestError Codes

Success Response

HTTP/1.1 200 OK

Sample Input XML—Modify ResourceGroup (PUT)

<?xml version="1.0" encoding="UTF-8"?><ResourceGroup><self>http://uccx-server/adminapi/resourceGroup/</self><id>3</id><name>Group-01</name>

</ResourceGroup>

Delete Resource GroupDELETEHTTP Method

http://<server>/adminapi/resourceGroup/{id}URI

http://uccx-server/adminapi/resourceGroup/21Example URI

Application/XML, Application/JSONContent Type

Cisco Unified Contact Center Express Developer Guide, Release 10.5 123

System Configuration APIsModify Resource Group

Page 136: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

200HTTP Success Code

401, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response

HTTP/1.1 200 OK

SkillSkills are customer-definable labels that are assigned to agents. All the Unified CCX license packages canroute incoming calls to agents who have the necessary skills or sets of skills to handle the call.

Data Structure for SkillDescriptionRestrictionsBase TypeAttribute Name

Numeric identifier of the skillNoneintskillId

Name of the skillminlength = 1

maxlength = 24

occurrences = 1

Skill Name containsalphanumericcharacters, specialcharacters, spaces,underscores (_), andhyphens (-) withoutleading or trailing whitespaces.

stringskillName

Get List of Skills

The maximum number of skills is 150.Note

GETHTTP Method

http://<server>/adminapi/skillURI

Cisco Unified Contact Center Express Developer Guide, Release 10.5124

System Configuration APIsSkill

Page 137: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server/adminapi/skillExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><Skills>

<Skill><self>https://uccx-server/adminapi/skill/2</self><skillId>2</skillId><skillName>Auto_Sanity_Skill</skillName>

</Skill><Skill>

<self>https://uccx-server/adminapi/skill/3</self><skillId>3</skillId><skillName>icd</skillName>

</Skill></Skills>

Get SkillGETHTTP Method

http://<server>/adminapi/skill/{id}URI

http://uccx-server/adminapi/skill/12Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><Skill>

<self>https://uccx-server/adminapi/skill/12</self><skillId>12</skillId><skillName>Auto_Sanity_Skill</skillName>

</Skill>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 125

System Configuration APIsGet Skill

Page 138: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Create SkillUsing this API, you can assign customer-definable label to an agent.

POSTHTTP Method

http://<server>/adminapi/skillURI

http://uccx-server/adminapi/skillExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML—Create Skill (POST)

<Skill><self href="http://uccx-server/adminapi/skill/1" rel="self" type="skill"/><skillId>1</skillId><skillName>skill1</skillName></Skill>

Modify SkillPUTHTTP Method

http://<server>/adminapi/skill/{id}URI

http://uccx-server/adminapi/skill/12Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5126

System Configuration APIsCreate Skill

Page 139: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

HTTP/1.1 200 OK

Sample Input XML—Modify Skill (PUT)

<Skill><self href="http://uccx-server/adminapi/skill/1" rel="self" type="skill"/><skillId>1</skillId><skillName>skillNewName</skillName></Skill>

Delete SkillWhen you delete a skill:

• the skill is removed automatically.

• If the skill is associated with any agents or CSQs, you are directed to another web page where you cansee a list of the associated CSQs and agents, and you are prompted to confirm whether you want todelete it or not.

DELETEHTTP Method

http://<server>/adminapi/skill{skillId}URI

http://uccx-server/adminapi/skill/1Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

TeamA team is a group of agents who report to the same supervisor. A team can have one primary supervisor andoptional secondary supervisors. A supervisor can also monitor CSQs that are assigned to the team that is beingsupervised.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 127

System Configuration APIsDelete Skill

Page 140: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for TeamDescriptionRestrictionsBase TypeAttribute Name

Name of the teamminOccurs = 1

maxOccurs = 1

nillable = false

minLength value = 1

maxLength value = 49

Team name contains alphanumericcharacters, special characters,spaces, underscores (_), andhyphens (-) without leading ortrailing white spaces.

stringteamName

Name of the primarysupervisor of the team

minOccurs = 0

maxOccurs = 1

nillable = false

nameUriPairprimarySupervisor

Name of the secondarysupervisor of the team

minOccurs = 0

maxOccurs = 1

nillable = false

nameUriPairsecondarySupervisors

Name of the resourceminOccurs = 0

maxOccurs = 1

nillable = false

nameUriPairresources

Name of the CSQminOccurs = 0

maxOccurs = 1

nillable = false

nameUriPaircsqs

Get List of TeamsGETHTTP Method

http://<server>/adminapi/teamURI

http://uccx-server/adminapi/teamExample URI

Application/XML, Application/JSONContent Type

Cisco Unified Contact Center Express Developer Guide, Release 10.5128

System Configuration APIsData Structure for Team

Page 141: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

200HTTP Success Code

401, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response

Get TeamPOSTHTTP Method

http://<server>/adminapi/team/{id}URI

http://uccx-server/adminapi/team/12Example URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405HTTP Failure Codes

HTTP/1.1 404 Not FoundError Codes

Success Response

Create TeamPOSTHTTP Method

http://<server>/adminapi/teamURI

http://uccx-server/adminapi/teamExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

401, 405HTTP Failure Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 129

System Configuration APIsGet Team

Page 142: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

—Error Codes

Success Response

HTTP/1.1 201 Created

Sample Input XML—Create Team (PUT)

<?xml version="1.0" encoding="UTF-8"?><team xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="team.xsd"><self>URL</self><teamId>27</teamId><teamname>TeamTest12</teamname><primarySupervisor name="atagent2">

<refURL>URL</refURL></primarySupervisor><secondarySupervisors>

<secondrySupervisor name="atagent1"><refURL>URL</refURL>

</secondrySupervisor></secondarySupervisors><resources><resource name="atagent1"><refURL>URL</refURL>

</resource></resources><csqs><csq name="Q1"><refURL>URL</refURL></csq></csqs></team>

Modify TeamPUTHTTP Method

http://<server>/adminapi/team/{id}URI

http://uccx-server/adminapi/team/12Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5130

System Configuration APIsModify Team

Page 143: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

Delete TeamDELETEHTTP Method

http://<server>/adminapi/team/{id}URI

http://uccx-server/adminapi/team/12Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

TriggerYou must configure Unified CM Telephony triggers to invoke application scripts in response to incomingcontacts. A Unified CM Telephony trigger responds to calls that arrive on a specific route point by selectingtelephony and media resources to serve the call and invoking an application script to handle the call.

Trigger Data StructureDescriptionRestrictionsBase TypeAttribute Name

A unique phone number.minOccurs = 1

maxOccurs = 1

directoryNumberdirectoryNumber

Defines the locale.minOccurs = 0

maxOccurs = 1

RestrictedStringlocale

Application name used toassociate with the trigger.

minOccurs = 1

maxOccurs = 1

nameUriPairapplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5 131

System Configuration APIsDelete Team

Page 144: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

A unique identifier for thedevice.

minOccurs = 1

maxOccurs = 1

deviceNamedeviceName

A descriptive name for the CTIroute point.

minOccurs = 1

maxOccurs = 1

descriptiondescription

The call control group used toassociate with the trigger.

minOccurs = 1

maxOccurs = 1

nameUriPaircallControlGroup

Used to enable or disable thetrigger.

minOccurs = 1

maxOccurs = 1

default = true

booleantriggerEnabled

The maximum number ofsimultaneous calls that thistrigger can handle.

minOccurs = 0

maxOccurs = 1

baseIdIntmaxNumOfSessions

The number of milliseconds(ms) the system should waitbefore rejecting the UnifiedCM Telephony request for thistrigger .

minOccurs = 0

maxOccurs = 1

default = "5000"

baseIdIntidleTimeout

Used to enable or disable themedia termination.

minOccurs = 0

maxOccurs = 1

overrideMediaTerminationoverrideMediaTermination

Displays theASCII name alertsfor the following scenarios:

• if the device is notcapable of handling theUnicode strings

• if the locale on endpointdevices do not match

• if the Unicode string isnot specified

minOccurs = 0

maxOccurs = 1

default = ""

CCMAlertingNameASCIIalertingNameAscii

The device pool to which youwant to assign the route point.

minOccurs = 0

maxOccurs = 1

default = "default"

CCMCommonObjectNamedevicePool

Cisco Unified Contact Center Express Developer Guide, Release 10.5132

System Configuration APIsTrigger Data Structure

Page 145: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

The total bandwidth that isavailable for calls to/from alocation.

minOccurs = 0

maxOccurs = 1

default ="Hub_none"

CCMCommonObjectNamelocation

The partition to which theDirectory Number belongs.

minOccurs = 0

maxOccurs = 1

default = none

CCMPartionNamepartition

A list of profiles defined in theVoice Mail ProfileConfiguration.

minOccurs = 0

maxOccurs = 1

cucmStringvoiceMailProfile

A collection of partitions thatare searched for numbers thatare called from the directorynumber.

minOccurs = 0

maxOccurs = 1

CCMCommonObjectNamecallingSearchSpace

A collection of partitions thatare searched to determine howa redirected call is routed.

Redirect Calling Search Spaceoptions:

• DN Calling SearchSpace—Enables the CTIPort to use its directorynumber CSS whenperforming a redirect /consult transfer.

• Calling Party—Enablesthe CTI Port to use thecalling party's CSSwhenperforming a redirect /consult transfer.

• Redirect Party—Enablesthe CTI Port to use theCTI Route Point's CSSwhen performing aredirect / consult transfer.

minOccurs = 0

maxOccurs = 1

default = "default"

enum values =default,calling.party,redirecting.party

enumcallingSearchSpaceForRedirect

Cisco Unified Contact Center Express Developer Guide, Release 10.5 133

System Configuration APIsTrigger Data Structure

Page 146: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

A list of groups to integrate thedevice with the iPass server.

minOccurs = 0

maxOccurs = 1

default = "StandardPresence group"

CCMCommonObjectNamepresenceGroup

Used to configure call forwardand pickup settings.

minOccurs = 0

maxOccurs = 1

forwardBusyforwardBusy

Simple Data Structure and Elements Used in TriggerDescriptionRestrictionsBase TypeAttribute Name

A unique phone number.minLength = 0

maxLength = 50

To support E.164compliance, Unified CCXallows to add “+” precedingto an agent extension or aroute point directorynumber. Including “+”, thedirectory number includesnumeric characters and thefollowing special characters:

X # [ ] - *

stringdirectoryNumber

A unique identifier forthis device.

minLength = 1

maxLength = 15

Description type cannotcontain special characters<,>,?,%,(,),\,/,+,'," andcannot have a leading ortrailing spaces.

stringdeviceName

A descriptive name forthe CTI route point.

minLength = 1

maxLength = 50

Description type cannotcontain special characters",\,&,<,>,,,/ and cannot havea leading space.

stringdescription

Cisco Unified Contact Center Express Developer Guide, Release 10.5134

System Configuration APIsSimple Data Structure and Elements Used in Trigger

Page 147: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Unicode stringrepresenting route pointinformation.

minLength = 1

maxLength = 50

Can contain numbers from0-9, characters a-z, A-Z, .-_and empty spaces.

stringcucmString

Used to display the username or the directorynumber.

minOccurs = 1

maxOccurs = 30

default = ""

Can contain a maximum of30 alphanumeric charactersexcept \,],",%,<,>,[,&,|,{and}.

stringdisplay

externalPhoneMaskNumberminOccurs = 0

maxOccurs = 1

maxLength = 24

All numeric character 0-9and character #, +, and X areallowed.

stringexternalPhoneMaskNumber

Used to enable or disablethe media termination.

minOccurs = 0

maxOccurs = unbounded

sequenceoverrideMediaTermination

Displays theASCII namealerts for the followingscenarios:

• if the device is notcapable of handlingthe Unicodestrings.

• if the locale onendpoint devicesdo not match.

• if the Unicodestring is notspecified.

minLength = 0

maxLength = 30

All characters are allowedexcept double quotationmarks ("), brackets (<,>),ampersand (&), and percent(%).

stringCCMalertingNameAscii

Cisco Unified Contact Center Express Developer Guide, Release 10.5 135

System Configuration APIsSimple Data Structure and Elements Used in Trigger

Page 148: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Complex Data Structure Defined for forwardBusyDescriptionRestrictionsBase TypeAttribute Name

Used to enable or disablesettings in the Destinationbox and Calling SearchSpace.

default = false

minOccurs = 0

maxOccurs = 1

booleanforwardBusyVoiceMail

Used to set a phone number,including an outsidedestination.

minOccurs = 0

maxOccurs = 1

directoryNumberforwardBusyDestination

Used to apply the callforward setting on all devicesthat are using the samedirectory number.

default = none

minOccurs = 1

maxOccurs = 1

stringforwardBusyCallingSearchSpace

Create a New TriggerPOSTHTTP Method

http://<server>/adminapi/triggerURI

http://uccx-server/adminapi/triggerExample URI

Application/XML, Application/JSONContent Type

201HTTP Success Code

400, 401, 405, 409HTTP Failure Codes

—Error Codes

Success Response

Retrieves the unique URI pointing to the trigger.

Sample Input XML—Create a New Trigger with Default Parameters (POST)

<?xml version="1.0" encoding="UTF-8"?><trigger><self rel="self" href=http://uccx-server/adminapi/trigger/3000" type="trigger"/><directoryNumber>3000</directoryNumber><locale>en_AU</locale><application name="Auto_OB_Application"><refURL>http://uccx-server/adminapi/application/Auto_OB_Application</refURL>

Cisco Unified Contact Center Express Developer Guide, Release 10.5136

System Configuration APIsComplex Data Structure Defined for forwardBusy

Page 149: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

</application><deviceName>abcd</deviceName><description>abcd</description><callControlGroup name="2"><refURL>http://uccx-server/adminapi/callControlGroup/2</refURL></callControlGroup><triggerEnabled>true</triggerEnabled><maxNumOfSessions>20</maxNumOfSessions><idleTimeout>5000</idleTimeout><overrideMediaTermination><dialogGroup name="0"><refURL>http://uccx-server/adminapi/dialogGroup/0</refURL></dialogGroup></overrideMediaTermination><alertingNameAscii></alertingNameAscii><devicePool>Default</devicePool><location>Hub_None</location><partition>None</partition><voiceMailProfile>None</voiceMailProfile><callingSearchSpace>None</callingSearchSpace><callingSearchSpaceForRedirect>default</callingSearchSpaceForRedirect><presenceGroup>Standard Presence group</presenceGroup><forwardBusy><forwardBusyVoiceMail>false</forwardBusyVoiceMail><forwardBusyDestination></forwardBusyDestination><forwardBusyCallingSearchSpace>None</forwardBusyCallingSearchSpace></forwardBusy><display></display><externalPhoneMaskNumber></externalPhoneMaskNumber>

</trigger>

Get a Trigger by Directory NumberGETHTTP Method

http://<server>/adminapi/trigger/<trigger number>URI

http://uccx-server/adminapi/trigger/876Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 403, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Get list of triggersGETHTTP Method

Cisco Unified Contact Center Express Developer Guide, Release 10.5 137

System Configuration APIsGet a Trigger by Directory Number

Page 150: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://<server>/adminapi/triggerURI

http://uccx-server/adminapi/triggerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 403, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Modify a Trigger by IDPUTHTTP Method

http://<server>/adminapi/trigger/<trigger id>URI

http://uccx-server/adminapi/trigger/876Example URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

400, 404HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Delete a Trigger by IDDELETEHTTP Method

http://<server>/adminapi/trigger/<trigger id>URI

http://uccx-server/adminapi/trigger/876Example URI

Cisco Unified Contact Center Express Developer Guide, Release 10.5138

System Configuration APIsModify a Trigger by ID

Page 151: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Application/XML, Application/JSONContent Type

200HTTP Success Code

400, 404HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

TTS ProviderTTS Provider provides the information about the text to speech service provider.

Data Structure for TTS ProviderDescriptionRestrictionsBase TypeAttribute Name

Name of the TTS provider.Regex:

[A-Za-z0-9.-_\s]+

stringttsProviderName

The number of TTS licenses.minOccurs = 0

maxOccurs = 1

nillable = false

intnoOflicenses

Get list of TTS ProvidersGETHTTP Method

http://<server>/adminapi/ttsProviderURI

http://uccx-server:8080/adminapi/ttsProviderExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 402, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 139

System Configuration APIsTTS Provider

Page 152: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ttsProviders>

<ttsProvider><ttsProviderId>47</ttsProviderId><ttsProviderName>Scansoft Realspeak 4.0</ttsProviderName><noOfLicenses>0</noOfLicenses>

</ttsProvider><ttsProvider>

<ttsProviderId>51</ttsProviderId><ttsProviderName>Nuance Vocalizer 4.0</ttsProviderName><noOfLicenses>0</noOfLicenses>

</ttsProvider></ttsProviders>

Get a TTS ProviderGETHTTP Method

http://<server>/adminapi/ttsProvider/ttsProviderNameURI

http://uccx-server:8080/adminapi/ttsProvider/ScansoftRealspeak 4.0

Example URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

Success Response

<?xml version="1.0" encoding="UTF-8"?><ttsProvider>

<ttsProviderId>44</ttsProviderId><ttsProviderName>Scansoft Realspeak 4.0</ttsProviderName><noOfLicenses>0</noOfLicenses>

</ttsProvider>

Create TTS ProviderPOSTHTTP Method

http://<server>/adminapi/ttsProviderURI

Cisco Unified Contact Center Express Developer Guide, Release 10.5140

System Configuration APIsGet a TTS Provider

Page 153: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

http://uccx-server:8080/adminapi/ttsProviderExample URI

Application/XMLContent Type

200, 201HTTP Success Code

401, 402, 405HTTP Failure Codes

—Error Codes

Success Response

http://uccx-server/adminapi/ttsProvider/Nuance%20Vocalizer%204%2E0

Sample Input XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ttsProvider><ttsProviderName>Scansoft Realspeak 4.0</ttsProviderName></ttsProvider>

Modify TTS ProviderPUTHTTP Method

http://<server>/adminapi/ttsProvider/ttsProviderNameURI

http://uccx-server:8080/adminapi/ttsProvider/ScansoftRealspeak 4.0

Example URI

Application/XMLContent Type

200, 201HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

Sample Input XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ttsProvider><ttsProviderName>Scansoft Realspeak 4.0</ttsProviderName><noOfLicenses>50</noOfLicenses></ttsProvider>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 141

System Configuration APIsModify TTS Provider

Page 154: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Delete TTS ProviderDELETEHTTP Method

http://<server>/adminapi/ttsProvider/ttsProviderNameURI

http://uccx-server:8080/adminapi/ttsProvider/ScansoftRealspeak 4.0

Example URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

TTS ServerTTS Server provides the information about the text to speech server.

Data Structure for TTS ServerDescriptionRestrictionsBase TypeAttribute Name

IP Address or hostname of theTTS server.

Regex:

[A-Za-z0-9_.-]+

\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

stringttsServerName

Name of the TTS provider.Regex:

[A-Za-z0-9.-_\s]+

providerTypeproviderName

Port number used for the TTS.minInclusive = 0

maxInclusive = 65535

intportNumber

The type of locale used for theTTS.

minOccurs = 1

maxOccurs = unbounded

nillable = false

localeTypelocales

The type of language used forthe TTS.

minOccurs = 1

maxOccurs = 1

nillable = false

stringlanguage

Cisco Unified Contact Center Express Developer Guide, Release 10.5142

System Configuration APIsDelete TTS Provider

Page 155: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

The type of gender used for theTTS.

minOccurs = 1

maxOccurs = 1

nillable = false

Enumeraton: (Male, Femaleand Neutral)

enumerationgender

The default gender used for theTTS.

minOccurs = 1

maxOccurs = 1

nillable = false

Enumeraton: (Male, Femaleand Neutral)

enumerationdefaultGender

Get list of TTS ServersGETHTTP Method

http://<server>/adminapi/ttsServerURI

http://uccx-server:8080/adminapi/ttsServerExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 402, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 143

System Configuration APIsGet list of TTS Servers

Page 156: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ttsServers>

<ttsServer><ttsServerId>48</ttsServerId><ttsServerName>localhost</ttsServerName><providerName>Scansoft Realspeak 4.0</providerName><portNumber>4900</portNumber><locales>

<language>en_US</language><gender>Female</gender><defGender>Female</defGender>

</locales></ttsServer><ttsServer>

<ttsServerId>49</ttsServerId><ttsServerName>localhost2</ttsServerName><providerName>Scansoft Realspeak 4.0</providerName><portNumber>4900</portNumber><locales>

<language>en_US</language><gender>Female</gender><defGender>Female</defGender>

</locales></ttsServer>

</ttsServers>

Get a TTS ServerGETHTTP Method

http://<server>/adminapi/ttsServer/ttsProviderNameURI

http://uccx-server:8080/adminapi/ttsServer/localhostExample URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5144

System Configuration APIsGet a TTS Server

Page 157: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8"?><ttsServer>

<ttsServerId>48</ttsServerId><ttsServerName>localhost</ttsServerName><providerName>Scansoft Realspeak 4.0</providerName><portNumber>4900</portNumber><locales>

<language>en_US</language><gender>Female</gender><defGender>Female</defGender>

</locales></ttsServer>

Create TTS ServerPOSTHTTP Method

http://<server>/adminapi/ttsServerURI

http://uccx-server:8080/adminapi/ttsServerExample URI

Application/XMLContent Type

200, 201HTTP Success Code

401, 402, 405HTTP Failure Codes

—Error Codes

Success Response

http://uccx-server/adminapi/ttsServer/localhost

Sample Input XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ttsServer><ttsServerName>localhost</ttsServerName><providerName>Scansoft Realspeak 4.0</providerName><portNumber>4900</portNumber><locales><language>en_US</language><gender>Male</gender><defGender>Female</defGender></locales></ttsServer>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 145

System Configuration APIsCreate TTS Server

Page 158: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Modify TTS ServerPUTHTTP Method

http://<server>/adminapi/ttsServer/localhostURI

http://uccx-server:8080/adminapi/ttsServer/localhostExample URI

Application/XMLContent Type

200, 201HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

Sample Input XML<?xml version="1.0" encoding="UTF-8"?><ttsServer><ttsServerName>localhost</ttsServerName><providerName>Scansoft Realspeak 4.0</providerName><portNumber>4900</portNumber><locales><language>en_US</language><gender>Female</gender><defGender>Female</defGender></locales><locales><language>en_SZ</language><gender>Male</gender><defGender>Male</defGender></locales></ttsServer>

Delete TTS ServerDELETEHTTP Method

http://<server>/adminapi/ttsServer/localhostURI

http://uccx-server:8080/adminapi/ttsServer/localhostExample URI

Application/XMLContent Type

200HTTP Success Code

401, 402, 404, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5146

System Configuration APIsModify TTS Server

Page 159: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DB Purge Schedule ConfigurationDB purge schedule configuration schedules a DB purge with given configurations and triggers automaticpurge at a given time stamp.

Data Structure for DB Purge Schedule ConfigurationDescriptionRestrictionsBase TypeAttribute Name

Data older than the specified numberof months to be purged.

minInclusive = 1

maxInclusive = 99

intreataininterval

Data older than the specified numberof days to be purged.

minInclusive = 1

maxInclusive = 99

inthrdbdays

Percentage of the maximum databasesize at which an automatic purge isinitiated.

minInclusive = 5

maxInclusive = 95

inthrdbmaxsize

Time of the day for the daily purgewith the time zone. The time displayedhere is based on the primary time zonespecified during initial setup of UnifiedCCX Administration.

In a High Availability overWAN deployment, the purgeschedule happens at the timezone of the primary node.

Note

nillable= false

Regex:

[(0[1-9]|1[0-2]):[0]

(AM|PM)]

stringscheduledTime

Get Purge Configuration InformationGETHTTP Method

http://<server>/adminapi/dbpurgeURI

http://uccx-server/adminapi/dbpurgeExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 147

System Configuration APIsDB Purge Schedule Configuration

Page 160: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><dbpurge><retaininterval>6</retaininterval><hrdbdays>1</hrdbdays><hrdbmaxsize>5</hrdbmaxsize><scheduledTime>04:00 PM</scheduledTime></dbpurge>

Update Purge Configuration InformationPUTHTTP Method

http://<server>/adminapi/dbpurgeURI

http://uccx-server/adminapi/dbpurgeExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success ResponseHTTP/1.1 200 OK

Sample Input XML — Modify a DB Purge Configuration (PUT)<?xml version="1.0" encoding="UTF-8"?><dbpurge><retaininterval>months</retaininterval><hrdbdays>days</hrdbdays><hrdbmaxsize>dbsize</hrdbmaxsize><scheduledTime>time</scheduledTime></dbpurge>

DB Purge Now ConfigurationDB purge now configuration purges the database manually at any time with the given configuration values.

Cisco Unified Contact Center Express Developer Guide, Release 10.5148

System Configuration APIsUpdate Purge Configuration Information

Page 161: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for DB Purge Now ConfigurationDescriptionRestrictionsBase TypeAttribute Name

Data older than the specified numberof months to be purged.

minInclusive = 0

maxInclusive = 99

intmonths

Data older than the specified numberof days to be purged.

minInclusive = 1

maxInclusive = 99

intdays

Update Purge Now ConfigurationPUTHTTP Method

http://<server>/adminapi/dbpurgeNowURI

http://uccx-server/adminapi/dbpurgeNowExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success ResponseHTTP/1.1 200 OK

Sample Input XML — Modify and initiate a DB Purge now (PUT)

<?xml version="1.0" encoding="UTF-8"?><dbpurgeNow><months>months</months><days>days</days></dbpurgeNow>

DB Purge Configuration StatusDB purge configuration status gets the status of manual and schedule purge.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 149

System Configuration APIsData Structure for DB Purge Now Configuration

Page 162: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Data Structure for DB Purge Configuration StatusDescriptionRestrictionsBase TypeAttribute Name

State of the purge.minOccurs = 1

maxOccurs = 1

nillable = false

stringpurgeState

Time stamp of the purge.minOccurs = 1

maxOccurs = 1

nillable = false

stringpurgeTimeStamp

Type of the purge.minOccurs = 1

maxOccurs = 1

nillable = false

stringpurgeType

Get Purge Configuration StatusGETHTTP Method

http://<server>/adminapi/purgeConfigStatusURI

http://uccx-server/adminapi/purgeConfigStatusExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response<?xml version="1.0" encoding="UTF-8"?><purgeConfigStatus><purgeState>COMPLETED_SUCCESSFULLY</purgeState><purgeTimeStamp>Mon Sep 30 12:00:24 PM 2013</purgeTimeStamp><purgeType>SCHEDULED</purgeType</purgeConfigStatus>

Cisco Unified Contact Center Express Developer Guide, Release 10.5150

System Configuration APIsData Structure for DB Purge Configuration Status

Page 163: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Outbound General ConfigurationGeneral configuration for Outbound refers to the settings information that is common for all the campaigns.

Data Structure for Outbound General ConfigurationDescriptionRestrictionsBase TypeAttribute Name

Outbound campaign start time.minOccurs = 1

maxOccurs = 1

Regex:

([01]?[0-9]|2[0-3]):[0-5]\d

timeTypeOB,

string

startTime

Outbound campaign end time.minOccurs = 1

maxOccurs = 1

Regex:

([01]?[0-9]|2[0-3]):[0-5]\d

timeTypeOB,

string

endTime

Timeout duration for an agent torespond to the Outbound call.

minOccurs = 1

maxOccurs = 1

minInclusive = 5

maxInclusive = 3600

intcallTimeout

Number to prefix to the phone numberfor dialing outgoing calls.

minOccurs = 0

maxOccurs = 1

default = ""

minLength = 0

maxLength = 5

The dialing prefix can have4 digits with plus (+) prefixor 5 digits without plus (+)prefix.

stringdialingPrefix

Cisco Unified Contact Center Express Developer Guide, Release 10.5 151

System Configuration APIsOutbound General Configuration

Page 164: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Number to prefix to the phone numberfor dialing long distance.

minOccurs = 0

maxOccurs = 1

default = ""

minLength = 0

maxLength = 5

The long distance prefix can4 digits with plus (+) prefixor 5 digits without plus (+)prefix.

stringlongDistancePrefix

Number to prefix to the internationalphone numbers.

minOccurs = 0

maxOccurs = 1

default = ""

minLength = 0

maxLength = 5

The international prefix canto 4 digits with plus (+)prefix or 5 digits withoutplus (+) prefix.

stringinternationalPrefix

Area code of the Unified CCX serverlocation.

minOccurs = 0

maxOccurs = 1

default = ""

minLength = 0

maxLength = 10

The local area code can have9 digits with plus (+) prefixor 10 digits without plus (+)prefix.

stringlocalAreaCode

Local area code to be included whenyou are dialing the phone numbers.

minOccurs = 0

maxOccurs = 1

default = false

booleanincludeLocalAreaCode

Number to prefix to the local andnon-local phone numbers for dialinglong distance.

minOccurs = 0

maxOccurs = 1

default = false

booleanincludeLongDistancePrefix

Cisco Unified Contact Center Express Developer Guide, Release 10.5152

System Configuration APIsData Structure for Outbound General Configuration

Page 165: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Unified CCX automatically answersany predictive or progressive campaigncall that gets transferred to the agent.

minOccurs = 0

maxOccurs = 1

default = true

booleanagentAutoAnswer

CSQs that are used by the Outboundsystem.

minOccurs = 0

maxOccurs = 1

csqListOB,

int

assignedCSQs

CSQs that are assigned for theOutbound campaign with thecorresponding percentage allocation.

minOccurs = 0

maxOccurs = unbounded

csqDetailsOB,

int

csq

CSQs that are assigned for theOutbound campaigns.

—nameUriPaircsqNameUriPair

The percentage of logged in agents ineach of the selected CSQs that areallocated for handling the Outboundcalls.

minInclusive = 1

maxInclusive = 100

intpercentage

Get List of Skills for Outbound General ConfigurationGETHTTP Method

http://<server>/adminapi/generalobconfigURI

http://uccx-server/adminapi/generalobconfigExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5 153

System Configuration APIsGet List of Skills for Outbound General Configuration

Page 166: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8"?><generalobconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="../../../../main/resources/xsd/generalobconfig.xsd"><startTime>08:00</startTime><endTime>21:00</endTime><callTimeout>10</callTimeout><dialingPrefix>1</dialingPrefix><longDistancePrefix>2</longDistancePrefix><internationalPrefix>1</internationalPrefix><localAreaCode>21</localAreaCode><includeLocalAreaCode>false</includeLocalAreaCode><includeLongDistancePrefix>false</includeLongDistancePrefix><assignedCSQs><csq><csqNameUriPair name="csq1"><refURL> http://uccx-server/adminapi/csq/1</refURL></csqNameUriPair><percentage>10</percentage></csq></assignedCSQs></generalobconfig>

Modify Outbound General ConfigurationPUTHTTP Method

http://<server>/adminapi/generalobconfigURI

http://uccx-server/adminapi/generalobconfigExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 404, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Sip Gateway ConfigurationSIP Gateways provide media termination and signal translation between the PSTN and the IP networks usingthe SIP signaling protocol for voice and video traffic. You can add or modify the SIP Gateway parametersusing REST API that enable the Outbound subsystem of the Unified CCX to communicate with the SIPgateway.

Cisco Unified Contact Center Express Developer Guide, Release 10.5154

System Configuration APIsModify Outbound General Configuration

Page 167: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Call Progress Analysis is a feature of the SIP gateway which determines whether the reached end point is ananswering machine, live voice, fax, or beep tone and so on. The SIP gateway performs call progressive analysisof the call and informs the outcome of the call to the Unified CCX

Data Structure for Sip Gateway ConfigurationsDescriptionRestrictionsBase TypeAttribute Name

IP Address or hostname of theSIP Gateway.

The IP addressvalidation for the validrange and the host namevalidation for theexistence of at least onealphabetic character isdone using Java code.

Note

Regex:

(([a-zA-Z0-9]|[a-zA-Z0-9]

[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])

(\.([a-zA-Z0-9]|[a-zA-Z0-9]

[a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*)

stringIpAddressorHostName

SIP port used by the gateway tocommunicatewithUnifiedCCX.

minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1

maxInclusive = 65535

intGatewayPort

Port number used on the UnifiedCCX server to communicatewith the gateway.

minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1025

maxInclusive = 32767

minInclusive = 61001

maxInclusive = 65535

intLocalCCXPort

Protocol required to send SIPmessages.

default = UDPstringtransportProtocol

CPA analysis period.minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1000

maxInclusive = 10000

intCpaAnalysisPeriod

Cisco Unified Contact Center Express Developer Guide, Release 10.5 155

System Configuration APIsData Structure for Sip Gateway Configurations

Page 168: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

DescriptionRestrictionsBase TypeAttribute Name

Minimum silence period.minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 100

maxInclusive = 1000

intCpaMinSilencePeriod

Maximum time analysis period.minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1000

maxInclusive = 10000

intCpaMaxTimeAnalysis

Minimum valid speech time.minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 50

maxInclusive = 500

intCpaMinValidSpeechTime

Maximum term tone analysisperiod.

minOccurs = 1

maxOccurs = 1

nillable = false

minInclusive = 1000

maxInclusive = 60000

intCpaMaxTermToneAnalysis

Get List of Sip Gateway ConfigurationsGETHTTP Method

http://<server>/adminapi/obsipgatewayconfigurationURI

http://uccx-server/adminapi/obsipgatewayconfigurationExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Cisco Unified Contact Center Express Developer Guide, Release 10.5156

System Configuration APIsGet List of Sip Gateway Configurations

Page 169: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Success Response

<?xml version="1.0" encoding="UTF-8"?><obSipGatewayConfiguration><IpAddressorHostName>uccx-server</IpAddressorHostName><GatewayPort>1024</GatewayPort><LocalCCXPort>5678</LocalCCXPort><transportProtocol>UDP</transportProtocol><CpaMinSilencePeriod>1000</CpaMinSilencePeriod><CpaAnalysisPeriod>2010</CpaAnalysisPeriod><CpaMaxTimeAnalysis>3000</CpaMaxTimeAnalysis><CpaMinValidSpeechTime>112</CpaMinValidSpeechTime><CpaMaxTermToneAnalysis>15000</CpaMaxTermToneAnalysis></obSipGatewayConfiguration>

Update SIP Gateway ConfigurationsPUTHTTP Method

http://<server>/adminapi/obsipgatewayconfigurationURI

http:/uccx-server/adminapi/obsipgatewayconfigurationExample URI

Application/XML, Application/JSONContent Type

200HTTP Success Code

401, 405HTTP Failure Codes

—Error Codes

Success Response

HTTP/1.1 200 OK

Sample Input XML — Modify SIP Gateway Configuration (PUT)

<?xml version="1.0" encoding="UTF-8"?><obSipGatewayConfiguration><IpAddressorHostName>uccx-server</IpAddressorHostName><GatewayPort>1024</GatewayPort><LocalCCXPort>5678</LocalCCXPort><transportProtocol>UDP</transportProtocol><CpaMinSilencePeriod>1000</CpaMinSilencePeriod><CpaAnalysisPeriod>2010</CpaAnalysisPeriod><CpaMaxTimeAnalysis>3000</CpaMaxTimeAnalysis><CpaMinValidSpeechTime>112</CpaMinValidSpeechTime><CpaMaxTermToneAnalysis>15000</CpaMaxTermToneAnalysis></obSipGatewayConfiguration>

Cisco Unified Contact Center Express Developer Guide, Release 10.5 157

System Configuration APIsUpdate SIP Gateway Configurations

Page 170: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5158

System Configuration APIsUpdate SIP Gateway Configurations

Page 171: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

A P P E N D I X ACisco Finesse Desktop and Configuration APIs

The Cisco Web Services Developer Guide includes the Cisco Finesse desktop and configuration APIs, a listof API parameters, errors, and information about gadget development.

This guide is available on the Finesse page of the Cisco Developer Network (requires sign-in with a cisco.comuser ID and password) and located at http://developer.cisco.com/web/finesse/docs.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 159

Page 172: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5160

Cisco Finesse Desktop and Configuration APIs

Page 173: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

A P P E N D I X BCisco SocialMiner APIs

The Cisco SocialMiner Developers Guide includes the SocialMiner APIs.

This guide is available on the SocialMiner page of the Cisco Developer Network (requires sign-in with acisco.com user ID and password) and located at https://developer.cisco.com/site/collaboration/contact-center/socialminer/overview/.

Cisco Unified Contact Center Express Developer Guide, Release 10.5 161

Page 174: Cisco Unified Contact Center Express Developer Guide ......Cisco Unified Contact Center Express Developer Guide, Release 10.5 9 System Configuration APIs Data Structure for ScriptApplication

Cisco Unified Contact Center Express Developer Guide, Release 10.5162

Cisco SocialMiner APIs