Cisco Unity Connection Provisioning Interface (CUPI) API -- System Default Language and TTS Language

From DocWiki

Revision as of 22:57, 13 December 2010 by Juliew (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Links to Other API pages: Cisco_Unity_Connection_APIs

CUPI Guide Contents
API Overview
Index of All CUPI Documentation

Contents


About System Default Language and System Default TTS Language

This page contains information on how to use the API to display and update the System Default Language and the System Default TTS Language.

The System Default Language and System Default TTS Language must be one of the installed languages on your Cisco Unity Connection server. To retrieve the list of installed languages on your system, use:

GET http://<connection-server>/vmrest/installedlanguages


Viewing

The System Default Language and System Default TTS Language are considered part of the "local" Connection server. To retrieve the current values for these fields, use:

GET http://<connection-server>/vmrest/locations/locallocation

The following is the response from the above GET request:

200
OK
<?xml version="1.0" encoding="UTF-8"?>
<LocalLocation>
  <DefaultLanguage>1033</DefaultLanguage>
  <DefaultTTSLanguage>1033</DefaultTTSLanguage>
</LocalLocation>

Note that the returned values are the language codes for the System Default Language and System Default TTS language. In this case, 1033 is the code for US English.


Updating

The following is an example of a PUT request that modifies the System Default Language and System Default TTS Language. In this example, we set both to Japanese (language code 1041). Note that the language codes must be valid, and that they must correspond to a language that has been installed and licensed on your Connection server.

PUT https://<connection-server>/vmrest/locations/locallocation

<LocalLocation>
  <DefaultLanguage>1041</DefaultLanguage>
  <DefaultTTSLanguage>1041</DefaultTTSLanguage>
</LocalLocation>

The following is the response from the above PUT request:

204
No Content
null

Rating: 0.0/5 (0 votes cast)

Personal tools