McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 351

↗ View in doc context
page
351
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::317

The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 Updating Fields of User Templates The request can be used to update the fields of a user template. It can be used to update Alias, Display Name, Time Zone, Language, COS, Partition Object ID, Phone System and Basic Setting fields of a user template. The following is an example of the PUT request that updates a user template: PUT https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid> Request Body: <UserTemplate> <Alias>ABCD_user template</Alias> <UseDefaultLanguage>true</UseDefaultLanguage> <Language>1033</Language> <UseDefaultTimeZone>true</UseDefaultTimeZone> <TimeZone>190</TimeZone> <CosObjectId>6f054167-6f6c-4ed5-a498-1776337871ee</CosObjectId> <MediaSwitchObjectId>221ee752-5147-4326-9990-d4a138674f9e</MediaSwitchObjectId> </UserTemplate> The following is the response from the above PUT request and the actual response will depend upon the information given by you: Response Code: 204 JSON Example To update fields of a user template: PUT https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid> Accept: application/json Content_type: application/json Connection: keep_alive Request Body: { "Alias":"ABC_user template", "DisplayName":"Auser template", "UseDefaultLanguage":"false", "TimeZone":"190", "MediaSwitchObjectId":"caf093ef-5e7b-47dd-9db7-9df360d2923e", "CosObjectId":"c93854b3-c59f-44e7-a6a9-0a6e17578672" } The following is the response from the above PUT request and the actual response will depend upon the information given by you: Response Code: 204 Update Country Code of the User Template To view the country code, use the following URI: GET https://<connection-server>/vmrest/languagemap And to check language check; use last 2 characters of language check to change the country code. Cisco Unity Connection Provisioning Interface (CUPI) API 319 Cisco Unity Connection Provisioning Interface (CUPI) API for User Template Updating Fields of User Templates