08-07-2014 03:43 PM
Hi all,
We are running Cisco Unity Connection 8.6.2ES25.21900-25 and are attempting to do some bulk updates via the CUPI API. We're running into an issue where we believe we should be able to set the SMTP Notification Device Footer Text based on the documentation, but we're not able to.
Here's the
documentation that we're looking at: http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_%28CUPI%29_API_--_User_Notification_Devices_API#SMTP_Device.
Here's the request that we're sending for the update:
PUT https://x1ipt730.countrylan.net:8443/vmrest/users/66487ba8-20cc-465a-b499-f0a492d04795/notificationdevices/smtpdevices/66487ba8-20cc-465a-b499-f0a492d04795 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
Content-Length: 177
Host:
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Authorization: Basic
<SmtpDevice>
<SmtpAddress>john@cisco.com</SmtpAddress>
<HeaderText>Header</HeaderText>
<FooterText>Footer</FooterText>
<StaticText>Static Text</StaticText>
</SmtpDevice>
Here's the response from the update:
HTTP/1.1 204 No Content
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 18:00:00 CST
Set-Cookie: JSESSIONIDSSO=579AC03CBC36EBDE8A30A0797BD11023; Path=/; Secure
Set-Cookie: JSESSIONID=7744DAADDB5BD7EA5362389E1382CFC4; Path=/vmrest; Secure
Date: Thu, 07 Aug 2014 21:47:38 GMT
Server:
Here's the response that we get when doing a get on the SMTP properties:
HTTP/1.1 200 OK
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 18:00:00 CST
Set-Cookie: JSESSIONIDSSO=CFC3BFEDDE07BB30756C70A5D40D9590; Path=/; Secure
Set-Cookie: JSESSIONID=204C5E9AF449721AA54D890D62AA17BE; Path=/vmrest; Secure
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Thu, 07 Aug 2014 21:47:44 GMT
Server:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmtpDevices total="1"><SmtpDevice><URI>/vmrest/users/8dc27e51-d619-422c-9185-d755c837352f/notificationdevices/smtpdevices/66487ba8-20cc-465a-b499-f0a492d04795</URI><PhoneNumber>From</PhoneNumber><SendCount>true</SendCount><SmtpAddress>john@cisco.com</SmtpAddress><StaticText>Static Text</StaticText><ObjectId>66487ba8-20cc-465a-b499-f0a492d04795</ObjectId><Active>true</Active><DeviceName>SMTP</DeviceName><DisplayName>E-Mail</DisplayName><MaxBody>512</MaxBody><MaxSubject>64</MaxSubject><SubscriberObjectId>8dc27e51-d619-422c-9185-d755c837352f</SubscriberObjectId><UserURI>/vmrest/users/8dc27e51-d619-422c-9185-d755c837352f</UserURI><SendCallerId>true</SendCallerId><SendPcaLink>false</SendPcaLink><Undeletable>true</Undeletable><EventList>NewVoiceMail</EventList><ScheduleSetObjectId>9c3ddf13-7699-4295-8b57-54f105d9de3d</ScheduleSetObjectId><InitialDelay>0</InitialDelay><RepeatInterval>0</RepeatInterval><RepeatNotify>false</RepeatNotify></SmtpDevice></SmtpDevices>
It doesn't look like <HeaderText> and <FooterText> can actually be set.
Is this not available to be updated through CUPI in 8.6?
Solved! Go to Solution.
08-07-2014 04:24 PM
he schema is embedded in Connection API - you can check using a URL like this:
https://MyConnectionServer.lindborglabs.org/vmrest/schema
go to the SMTPDevice section and look - on my 10.0 and 10.5 servers I have up testing on now the footer text is there - I suspect if you look on the older 8.6 server (I don't have one handy) it wont be there.
The wiki doesn't list each version each property/object was added to the REST API but changes to REST (and the underlying DB changes for those in many cases) do not get ported back to all versions of course. When in doubt check the schema tables.
08-07-2014 04:24 PM
he schema is embedded in Connection API - you can check using a URL like this:
https://MyConnectionServer.lindborglabs.org/vmrest/schema
go to the SMTPDevice section and look - on my 10.0 and 10.5 servers I have up testing on now the footer text is there - I suspect if you look on the older 8.6 server (I don't have one handy) it wont be there.
The wiki doesn't list each version each property/object was added to the REST API but changes to REST (and the underlying DB changes for those in many cases) do not get ported back to all versions of course. When in doubt check the schema tables.
08-07-2014 04:49 PM
That's useful.
Yeah, so, it's not in there. I take it then, that there's no way of updating that through CUPI, correct? I know that we can bulk update it through the Bulk Update utilities, if nothing else.
Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide