cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

Deleting Members of a System Distribution List

20
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: David Neustedter on 27-10-2010 07:58:47 PM
I need to be able to manage system distribution lists via CUPI.  I can create the lists, add members to the list, but I need to be able to delete the members from the list.  Whenever I attempt to use the DELETE action with the URI as described in WADL I get a 405 error.
 
Is this not the correct syntax?
 
DELETE /vmrest/distributionlists/{dlObjectID}/distributionlistmembers/{ObjectId}

Subject: RE: Deleting Members of a System Distribution List
Replied by: David Wanagel on 29-10-2010 10:46:44 AM
Sorry for the delay in getting to this.  That looks like the correct syntax so I am not sure why your are getting that error.  Since the URI is correct, you might try double checking to make sure the HTTP method is actually delete.  Also make sure you are not sending any content (DELETE takes an empty request).
 
-Dave
 
Output from my unit test for reference:
 


POST: https://cuc-install-67.cisco.com/vmrest/distributionlists
POST result URI: /vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f
GET: https://cuc-install-67.cisco.com/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f
Dump bean: com.cisco.connection.xjc.DistributionList
URI=/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f
alias=test-distribution-list
allowContacts=false
allowForeignMessage=false
altName=null
alternateNamesURI=/vmrest/alternatenames?query=(DistributionListObjectId%20is%20651eb5f6-77b5-4ea7-a881-99186d5aa07f)
class=class com.cisco.connection.xjc.DistributionList
creationTime=2010-10-29 10:46:03.55
displayName=Test Distribution List
distributionListMembersURI=/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f/distributionlistmembers
dtmfAccessId=null
dtmfName=8378347874288466
isPublic=false
locationObjectId=b59c42b3-8366-4a5f-91e9-10d9e0fbb402
locationURI=/vmrest/locations/connectionlocations/b59c42b3-8366-4a5f-91e9-10d9e0fbb402
objectId=651eb5f6-77b5-4ea7-a881-99186d5aa07f
partitionObjectId=4c904780-1fa2-43f6-80b1-521919610b45
partitionURI=/vmrest/partitions/4c904780-1fa2-43f6-80b1-521919610b45
undeletable=false
voiceFileURI=null
voiceName=null
voiceNameURI=null
GET: https://cuc-install-67.cisco.com/vmrest/users?query=(alias%20startswith%20operator)
Dump bean: com.cisco.connection.xjc.Users
class=class com.cisco.connection.xjc.Users
total=1
user=[com.cisco.connection.xjc.User@2d95b3]
POST: https://cuc-install-67.cisco.com/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f/distributionlistmembers
POST result URI: /vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f/distributionlistmembers/f9aa0de7-60e8-4c73-8186-71b9e7375bb9
DELETE: https://cuc-install-67.cisco.com/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f/distributionlistmembers/f9aa0de7-60e8-4c73-8186-71b9e7375bb9
DELETE response status: 204
DELETE: https://cuc-install-67.cisco.com/vmrest/distributionlists/651eb5f6-77b5-4ea7-a881-99186d5aa07f
DELETE response status: 204
CreatePlease to create content
Content for Community-Ad
FusionCharts will render here