Updating a Related Community
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 7, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To update a Related Community entry, send an updated entry document in Atom format to the existing entry's edit web address.

Related Community information will be replaced with the new data. To avoid deleting all existing data, retrieve any data you want to retain first, and send it back with this request.

Note: Related Community URL can not be updated. Only title and description can be updated.

Input
Method URI Description
PUT /communities/recomm/atom/relatedCommunity Value of the href attribute of <link> element that has a rel="edit" attribute for each entry in the Related Communities feed.
Content Type: application/atom+xml
Name Type Optional Description
entryId
string No The uuid of the related community which you want to edit.
Output
Content Type: application/atom+xml
Code Description
200
Indicates that the forum topic was successfully updated. If an error occurs, this header contains one of the error codes.
401
Unauthorized.
404
Not Found.
Examples
 PUT /communities/recomm/atom/relatedCommunity?entryId=11bd8995-8d8f-4a73-a633-26974984a1e5 HTTP/1.1


<entry xmlns="http://www.w3.org/2005/Atom">

<title type="text">Updated-This is a related community</title>

<content type="text">Updated-Add a related community.</content>

<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="relatedCommunity"></category>

</entry>


Response returned by the server
 HTTP/1.1 403 Forbidden


HTTP/1.1 400 Bad Request or 500 or others

Content-Type: text/xml;charset=UTF-8


<error xmlns="http://www.ibm.com/xmlns/prod/sn">

<code>400</code>

<message>Error message </message>

<trace>Exception trace </trace>

</error>


HTTP/1.1 200 OK


<entry xmlns:snx="http://www.ibm.com/xmlns/prod/sn">

<id>urn:lsid:ibm.com:recomm:relatedcommunity:11bd8995-8d8f-4a73-a633-26974984a1e5</id>

<snx:communityUuid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">bfcec17e-235c-4bd7-9fd5-2ba98779bd70</snx:communityUuid>

<snx:relatedCommunityUuid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">dc1a846d-59c3-4c95-9d13-6724582ab170</snx:relatedCommunityUuid>

<snx:permissions xmlns:snx="http://www.ibm.com/xmlns/prod/sn">edit,delete</snx:permissions>

<title type="text">Updated-This is a related community</title>

<published>2012-08-16T07:43:52.000Z</published>

<author>

<snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">50730340-0101-102e-88f0-f78755f7e0ed</snx:userid>

<email>ajones22@janet.iris.com</email>

<name>Amy Jones22</name>

<snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>

</author>

<updated>2012-08-16T07:43:52.000Z</updated>

<contributor>

<snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">50730340-0101-102e-88f0-f78755f7e0ed</snx:userid>

<email>ajones22@janet.iris.com</email>

<name>Amy Jones22</name>

<snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>

</contributor>

<content type="text">Updated-Add a related community.</content>

<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="relatedCommunity"></category>

<link href="http://lc30linux4.swg.usma.ibm.com/communities/service/html/communityview?communityUuid=dc1a846d-59c3-4c95-9d13-6724582ab170" rel="http://www.ibm.com/xmlns/prod/sn/related-community" type="text/html">

<link href="http://lc30linux4.swg.usma.ibm.com/communities/service/html/communityview?communityUuid=dc1a846d-59c3-4c95-9d13-6724582ab170" rel="alternate" type="text/html">

<link href="http://lc30linux3.swg.usma.ibm.com/communities/recomm/atom_form/relatedCommunity?entryId=11bd8995-8d8f-4a73-a633-26974984a1e5" rel="self" type="application/atom+xml">

<link href="http://lc30linux3.swg.usma.ibm.com/communities/recomm/atom_form/relatedCommunity?entryId=11bd8995-8d8f-4a73-a633-26974984a1e5" rel="edit" type="application/atom+xml">

</entry>