Getting a list of Communities in the trash
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 9, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Get the trash feed to see a list of the communities which have been deleted but not yet fully purged by the system for which the authenticated user is an owner.

Discoverability

You can derive the URL from the service document. Find the value of the href attribute of <collection> element that contains the <atom:category scheme="http://www.ibm.com/xmlns/prod/sn/collection" term="trash"/> element.


Request parameters

The trash feed supports all the parameters of the Getting the My Communities feed ic45Create New Article but returns only those communities in the Communities' trash.

Method URI Description
GET /communities/service/atom/communities/trash You can derive the URL from the service document. Find the value of the href attribute of <collection> element that contains the <atom:category scheme="http://www.ibm.com/xmlns/prod/sn/collection" term="trash"/> element.
Output
Content Type: application/atom+xml
Examples
Get the trash feed for Communities for which I'm an owner.
http://example.org/communities/service/atom/communities/trash

Response returned by the server
<feed xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:snx="http://www.ibm.com/xmlns/prod/sn" xmlns="http://www.w3.org/2005/Atom">
  <id>http://example.org/communities/service/atom/communities/trash</id>
  <title type="text"/>
  <updated>2014-05-08T16:21:24.821Z</updated>
  <generator version="5.0.0.0" uri="http://www.ibm.com/xmlns/prod/sn">IBM Connections - Communities</generator>
  <link href="http://example.org/communities/service/atom/service" rel="http://www.ibm.com/xmlns/prod/sn/service">
  </link>
  <link href="http://example.org/communities/service/atom/service" rel="service">
  </link>
  <link href="http://example.org/communities/service/atom/communities/trash" rel="self">
  </link>
  <link href="http://example.org/communities/service/html/allcommunities" rel="alternate">
  </link>
  <opensearch:totalResults>1</opensearch:totalResults>
  <opensearch:startIndex>1</opensearch:startIndex>
  <opensearch:itemsPerPage>10</opensearch:itemsPerPage>
  <link href="http://example.org/communities/service/atom/communities/trash?outputType=categories" rel="http://www.ibm.com/xmlns/prod/sn/tag-cloud" type="application/atomcat+xml">
  </link>
  <entry>
    <snx:communityUuid>da7f826e-3aee-4039-ba18-08157cb2c7b7</snx:communityUuid>
    <id>http://communities.ibm.com:2006/service/atom/community/instance?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7</id>
    <title type="text">test</title>
    <category term="community" scheme="http://www.ibm.com/xmlns/prod/sn/type">
    </category>
    <category term="deleted" scheme="http://www.ibm.com/xmlns/prod/sn/flags">
    </category>
    <link href="http://example.org/communities/service/atom/community/instance?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="self">
    </link>
    <link href="http://example.org/communities/service/atom/community/instance?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="edit">
    </link>
    <link href="http://example.org/communities/service/html/communitystart?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="alternate" type="text/html">
    </link>
    <link href="http://example.org/communities/service/html/image?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7&amp;lastMod=1399554897159" rel="http://www.ibm.com/xmlns/prod/sn/logo">
    </link>
    <link href="http://example.org/communities/service/atom/community/service?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/service" type="application/atomsvc+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/members?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/member-list" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/bookmarks?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/bookmarks" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/feeds?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/feeds" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/remoteApplications?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/remote-applications" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/forum/topics?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/forum-topics" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/invites?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/invitations-list" type="application/atom+xml">
    </link>
    <link href="http://example.org/communities/service/atom/community/widgets?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/widgets" type="application/atom+xml">
    </link>
    <snx:membercount>2</snx:membercount>
    <snx:communityType>private</snx:communityType>
    <snx:handle/>
    <link href="http://example.org/communities/service/atom/community/subcommunities?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/subcommunities" type="application/atom+xml">
    </link>
    <snx:preModeration>false</snx:preModeration>
    <snx:postModeration>false</snx:postModeration>
    <published>2014-05-08T13:14:57.159Z</published>
    <updated>2014-05-08T16:20:56.169Z</updated>
    <content type="html"/>
    <summary type="text"/>
    <author>
      <name>Amy Jones480</name>
      <snx:userid>d871a840-f6df-1032-9c50-d02a14283ea9</snx:userid>
      <snx:userState>active</snx:userState>
      <snx:isExternal>false</snx:isExternal>
      <email>ajones480@janet.iris.com</email>
    </author>
    <contributor>
      <name>Amy Jones480</name>
      <snx:userid>d871a840-f6df-1032-9c50-d02a14283ea9</snx:userid>
      <snx:userState>active</snx:userState>
      <snx:isExternal>false</snx:isExternal>
      <email>ajones480@janet.iris.com</email>
    </contributor>
    <link href="http://example.org/connections/opensocial/rest/activitystreams/urn:lsid:lconn.ibm.com:communities.community:da7f826e-3aee-4039-ba18-08157cb2c7b7/@all/@all?format=atom" rel="http://www.ibm.com/xmlns/prod/sn/activitystream" type="application/atom+xml">
    </link>
    <link href="http://example.org/connections/opensocial/rest/ublog/urn:lsid:lconn.ibm.com:communities.community:da7f826e-3aee-4039-ba18-08157cb2c7b7/@all?format=atom" rel="http://www.ibm.com/xmlns/prod/sn/microblog" type="application/atom+xml">
    </link>
    <snx:communityTheme snx:uuid="default">
    </snx:communityTheme>
    <snx:communityStartPage/>
    <snx:isExternal>true</snx:isExternal>
    <link href="http://example.org/communities/service/atom/community/broadcasts?communityUuid=da7f826e-3aee-4039-ba18-08157cb2c7b7" rel="http://www.ibm.com/xmlns/prod/sn/community-broadcasts" type="application/atom+xml">
    </link>
  </entry>
</feed>