<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>CUPI - create User Template</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6515126" />
  <subtitle>CUPI - create User Template</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6515126</id>
  <updated>2013-05-25T22:51:14Z</updated>
  <dc:date>2013-05-25T22:51:14Z</dc:date>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11232682" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11232682</id>
    <updated>2013-01-29T06:40:34Z</updated>
    <published>2013-01-29T06:40:34Z</published>
    <summary type="html">Hello,
  Thanks for this information ... I used the workaround (suppressing the restriction on outdial ...) and now I can create users !
  For your information, in my version when a create action doesn't work, the http request fails and doesn't get an answer. I got only an exception ! So I haven't any information on the error ...
  My conclusion is that VMREST is a very poor interface for managing Unity Connection servers. It's very far from the AXL SOAP API interface available on CallManager environments. Is there a more suitable solution for managing Unity Connection ?
Best regards
Christian</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-29T06:40:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11206761" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11206761</id>
    <updated>2013-01-28T14:36:18Z</updated>
    <published>2013-01-28T14:36:18Z</published>
    <summary type="html">Alright. So you must be getting an error XML in the response something like &lt;ErrorDetails&gt;&lt;errors&gt;.....That's why I asked for the complete output of the request.
This issue has been fixed as a part of CSCty85181 in 8.0ES and above branches.</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-28T14:36:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11197586" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11197586</id>
    <updated>2013-01-28T09:38:05Z</updated>
    <published>2013-01-28T09:38:05Z</published>
    <summary type="html">Hello,
  Finally, I found where I can get traces on CUPI requests ...
When I try to add a user, I got the following traces :
[url=http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/11134505]01/28/2013 10:31:09.110 |12422,,,VMREST,3,DEBUG [http-8443-2] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - created authentication information: username=testprov, alias=testprov, id=a76ab312-5967-42d3-b15f-2a834c94808a|
01/28/2013 10:31:09.118 |12422,,,VMREST,3,DEBUG [http-8443-2] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - returning session cached authentication information: alias=testprov, id=a76ab312-5967-42d3-b15f-2a834c94808a|
01/28/2013 10:31:09.887 |12422,,,VMREST,3,ERROR [http-8443-2] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - unable to create a subscriber|
01/28/2013 10:31:09.887 |12422,,,VMREST,3,ERROR [http-8443-2] com.cisco.connection.rest.helper.Utilities  - The Phone Number/Extension has violated a restriction in the restriction table. Phone Number/Extension = [vUserMwiExtension], Restriction Type = [Outdial]|[/url]
Can you explain me why I got a "phone number violation" error ?
If I try to create the user with the same information on the "administration" web page, it works correctly ...
Best regards
Christian</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-28T09:38:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11134505" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11134505</id>
    <updated>2013-01-25T13:21:54Z</updated>
    <published>2013-01-25T13:21:54Z</published>
    <summary type="html">Hello,
  I don't know fiddler and I don't have a lot of time to understand, install, parameter and use it !
Is it possible to get traces on the unity connection server concerning vmrest requests ?
To see what is received and eventually what is wrong ...
Christian</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-25T13:21:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11098147" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11098147</id>
    <updated>2013-01-24T16:13:30Z</updated>
    <published>2013-01-24T16:13:30Z</published>
    <summary type="html">Thats what needs to be checked. The fiddler output will help in this case.</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-24T16:13:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11096934" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11096934</id>
    <updated>2013-01-24T15:27:47Z</updated>
    <published>2013-01-24T15:27:47Z</published>
    <summary type="html">OK, I can try to get these informations but why did it work when I do a PUT action like this:
- Method: PUT
- URI: https://10.230.110.177:8443/vmrest/users/75adf033-6a05-4460-bc58-e623186924ec
- XML Data: &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;User&gt;
  &lt;Alias&gt;tst12345&lt;/Alias&gt;
  &lt;LastName&gt;PROVUser&lt;/LastName&gt;
  &lt;FirstName&gt;Test&lt;/FirstName&gt;
  &lt;DisplayName&gt;Test PROVUser&lt;/DisplayName&gt;
  &lt;DtmfAccessId&gt;12345&lt;/DtmfAccessId&gt;
&lt;/User&gt;
I use the same programming code for the two actions. I only change the method ....</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-24T15:27:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11096577" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11096577</id>
    <updated>2013-01-24T14:59:54Z</updated>
    <published>2013-01-24T14:59:54Z</published>
    <summary type="html">Aah.....There you go. It means there can be some issue in creating the request. A couple of things to check:
1. Check the content-type header which you are setting while sending the POST request.
2. The request body which you are setting while sending the POST request.
3. Check the request details using something like Fiddler. 
Do share those details.</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-24T14:59:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11091751" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11091751</id>
    <updated>2013-01-24T14:17:18Z</updated>
    <published>2013-01-24T14:17:18Z</published>
    <summary type="html">Hello,
  I have tried to do to POST actions:

First one, I tried to create a contact with the following informations:
- Method: POST
- URI: https://10.230.110.177:8443/vmrest/contacts?templateAlias=voicemailusertemplate
- XML Data: &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;Contact&gt;&lt;Alias&gt;ctc2345&lt;/Alias&gt;&lt;DisplayName&gt;ctc2345&lt;/DisplayName&gt;&lt;/Contact&gt;
For this firts test, I got the same error: The remote server returned an error: (400) Bad Request.
-------------------------------
On a second time, I tried a POST to reset a user's MWI with the following informations:
- Method: POST
- URI: https://10.230.110.177:8443/vmrest/users/75adf033-6a05-4460-bc58-e623186924ec?method=resetmwi
- XML Data: Nothing
For this second test, I got the result code: 204 - NoContent
Thus it works on the second test ...
Have you some idea ?


Christian</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-24T14:17:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11090943" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11090943</id>
    <updated>2013-01-24T13:22:10Z</updated>
    <published>2013-01-24T13:22:10Z</published>
    <summary type="html">I tried it with a 7.1.5ES setup and my java API works fine for the POST operation. Not very much familiar with the .NET api though.
As far as I am suspecting, this can be a case of incorrect request format. Try creating some object other than user like a callhandler, cos, partition etc. and see if you get the same error or not.</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-24T13:22:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11082271" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11082271</id>
    <updated>2013-01-24T07:43:27Z</updated>
    <published>2013-01-24T07:43:27Z</published>
    <summary type="html">Hello,
  My code is based on the sample available on the CUPI documentation (http://developer.cisco.com/documents/4453236/4479360/VoiceMailboxQuotaReport.zip/f2437d92-fe8b-4cc9-9729-674ea5827ad3?version=1.0).
All the others actions work correctly.
I can get (GET method), update (PUT method) and delete (DELETE method) existing users or update user's PIN code.
I try yesterday to create a "user template" an I got 405 (405 Method Not Allowed ) exception error. It's normal "user template" creation is not allowed with our CUC version !
So can you help me to find where is the mistake in my create action.
Best regards
Christian
 </summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-24T07:43:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11039460" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11039460</id>
    <updated>2013-01-23T17:03:32Z</updated>
    <published>2013-01-23T17:03:32Z</published>
    <summary type="html">Hmm......Can you share the code snippet where you are making the request and sending it to the server.</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-23T17:03:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035775" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035775</id>
    <updated>2013-01-23T15:34:19Z</updated>
    <published>2013-01-23T15:34:19Z</published>
    <summary type="html">Hello Utkarsh,

  The exact version is 7.1.5.0ES33

  And for the request, I got an exception when I send the request to the server with the error message giving in my first post. So I don't receive any answer to my request ... and I don't have any other information.

Christian
 </summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-23T15:34:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035507" />
    <author>
      <name>Utkarsh Katiyar</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11035507</id>
    <updated>2013-01-23T15:21:24Z</updated>
    <published>2013-01-23T15:21:24Z</published>
    <summary type="html">Hey Christian,

What's the complete output of the failed request? Also which version of 7.1.5 are you using?
-Utkarsh</summary>
    <dc:creator>Utkarsh Katiyar</dc:creator>
    <dc:date>2013-01-23T15:21:24Z</dc:date>
  </entry>
  <entry>
    <title>CUPI - create User</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11031129" />
    <author>
      <name>Christian LUDGER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11031129</id>
    <updated>2013-01-23T13:26:41Z</updated>
    <published>2013-01-23T13:26:41Z</published>
    <summary type="html">Hello,
  I am trying to create a user in a version 7.1.5 Unity Connection server.
A use the following informations:
- Method: POST
- URI: https://10.230.110.177:8443/vmrest/users?templateAlias=voicemailusertemplate

- XML Data:
&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
&lt;User&gt;
  &lt;Alias&gt;tst2345&lt;/Alias&gt;
  &lt;LastName&gt;PROVUser&lt;/LastName&gt;
  &lt;FirstName&gt;Test1&lt;/FirstName&gt;
  &lt;DisplayName&gt;Test1 PROVUser&lt;/DisplayName&gt;
  &lt;DtmfAccessId&gt;23456&lt;/DtmfAccessId&gt;
&lt;/User&gt;


I got the following error: The remote server returned an error: (400) Bad Request
For information, I can get, update and delete a user. Only the create process fail!
Christian</summary>
    <dc:creator>Christian LUDGER</dc:creator>
    <dc:date>2013-01-23T13:26:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6538728" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6538728</id>
    <updated>2012-09-20T05:16:53Z</updated>
    <published>2012-09-20T05:16:53Z</published>
    <summary type="html">For user templates, there is no example in our existing docs. We will be publishing this with our new release documentation. If you have any question for any API that is missing in the docs, please drop us a query at this forum. We'll answer it at the earliest.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-20T05:16:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6520107" />
    <author>
      <name>Ting-Hao Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6520107</id>
    <updated>2012-09-18T20:48:00Z</updated>
    <published>2012-09-18T20:48:00Z</published>
    <summary type="html">[url=http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_%28CUPI%29_API_--_HTML_Notification_Templates]Cisco Unity Connection Provisioning Interface (CUPI) API -- HTML Notification Templates[/url]

Howard</summary>
    <dc:creator>Ting-Hao Chen</dc:creator>
    <dc:date>2012-09-18T20:48:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6520580" />
    <author>
      <name>Ryan Ash</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6520580</id>
    <updated>2012-09-18T13:40:31Z</updated>
    <published>2012-09-18T13:40:31Z</published>
    <summary type="html">Wonderful...THanks!

What doc should I be using to answer these questions?  The schema?</summary>
    <dc:creator>Ryan Ash</dc:creator>
    <dc:date>2012-09-18T13:40:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6516145" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6516145</id>
    <updated>2012-09-18T09:52:06Z</updated>
    <published>2012-09-18T09:52:06Z</published>
    <summary type="html">Hi Ryan,

Yes, it is allowed to create a user template via REST APIs.

You need to do the following for achieving this:

POST: https://&lt;Connection-ip&gt;/vmrest/usertemplates?templateAlias=&lt;template&gt;

Where template for a voice mail user would be "voicemailusertemplate", so the request would become

https://&lt;Connection-ip&gt;/vmrest/usertemplates?templateAlias=voicemailusertemplate

And in the request xml body you can give:

&lt;UserTemplate&gt;
      &lt;Alias&gt;AkkiTemplate&lt;/Alias&gt;
      &lt;DisplayName&gt;Akanksha Template&lt;/DisplayName&gt;
&lt;/UserTemplate&gt;

As a response, you will receive the user template object id. You can view this template by hitting a GET : https://&lt;Connection-ip&gt;/vmrest/usertemplates

Let me know if you have any other question.

Thanks &amp; Regards,
Akanksha A</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-18T09:52:06Z</dc:date>
  </entry>
  <entry>
    <title>CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6515125" />
    <author>
      <name>Ryan Ash</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6515125</id>
    <updated>2012-09-17T22:29:05Z</updated>
    <published>2012-09-17T22:29:05Z</published>
    <summary type="html">Is the creation of a User Template allows via CUPI?  I cannot find any documentation on the creation of usertemplates.  The GET is fully functionality.  If it is allowed can someone point me in the right direction of documentation showing required params for the POST?  
 
Ryan</summary>
    <dc:creator>Ryan Ash</dc:creator>
    <dc:date>2012-09-17T22:29:05Z</dc:date>
  </entry>
</feed>

