Splitting a stand-alone forum reply
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 16, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To split a forum reply (along with the replies to this reply) from one topic to another, use the edit link found in the forum reply entry in the forum replies feed.

Before you can split a reply, you must complete the following tasks:


<thr:in-reply-to

href=<web address of the link rel="replies" element>

ref=<id element of new topic>

type="application/atom+xml">

</thr:in-reply-to>


For example:

<thr:in-reply-to

href="https://example.com/forums/atom/topic?

topicUuid=7cf6c58d-0f24-44bc-a18b-9ded332f40d8"

ref="urn:lsid:ibm.com:forum:6b4f9f8d-e979-41e3-b011-d56f4cefbf89"

type="application/atom+xml">

</thr:in-reply-to>


Note: The value of the href attribute, which continues to reference the web address of the replies link for the old topic is automatically updated by the server to reference the new topic after you submit the edited Atom entry document using the PUT request.
1. Retrieve a feed of topics that includes the topic you want to move the reply to. See Getting the My Topics feed.
2. Find the entry representing the topic to which you want to move the reply , and then make a note of the <id> element value.
3. Retrieve the Atom entry document for the forum reply that you want to move. See Retrieving a stand-alone forum reply.
4. Edit the reply Atom entry document to reference the new topic instead of the old topic by updating the value of the ref attribute in the <thr:in-reply-to> element with the values you noted in a previous step.
5. Save the edited reply Atom entry document.
6. Send a PUT request to the web address specified in the href attribute of the <link rel="edit"> element of the forum reply that you want to split. Include the edited Atom entry document with the request. See the Input section below for details about how to handle attachments and so on.

 

Input
Method URI Description
PUT /forums/atom/reply Value of the href attribute of the <link> element that has a rel="edit" attribute value for each entry in the forum replies feed.
Content Type: application/atom+xml
Name Type Optional Description
replyUuid
string No The UUID of the reply you wish to modify.
Output
Code Description
200
OK. 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 /forums/atom/reply?replyUuid=1f3be6f0-65f1-4326-b25b-12de8dd74acb HTTP/1.1
Host: www.dulcinea.com
Content-Type: application/atom+xml
Authorization: xxx
Content-Length: nnn
 
<entry xmlns="http://www.w3.org/2005/Atom">
    <id>urn:lsid:ibm.com:forum:84139b22-17f0-4290-939b-73370c6ef17c</id>
    <title type="text">Test topic 1</title>
    <published>2010-08-04T21:45:09.324Z</published>
    <updated>2010-08-04T21:45:09.324Z</updated>
    <author>
        <email>jdoe@literature.com</email>
        <name>Jane Doe</name>
        <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
         772A006E-0A01-8703-8525-7346003DAFD6
        </snx:userid>
        <snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>
    </author>
    <link 
     href="https://www.dulcinea.com/forums/atom/reply?replyUuid=1f3be6f0-65f1-4326-b25b-12de8dd74acb" 
     rel="self" 
     type="application/atom+xml"></link>
    <link 
     href="https://www.dulcinea.com/forums/atom/reply?replyUuid=1f3be6f0-65f1-4326-b25b-12de8dd74acb" 
     rel="edit" 
     type="application/atom+xml">
    </link>
    <category term="forum-reply" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
    <link 
     href="https://www.dulcinea.com/forums/html/topic?id=80e0be88-ffce-445b-9edd-8d1dcc9a8020#1f3be6f0-65f1-4326-b25b-12de8dd74acb" 
     rel="alternate" 
     type="text/html">
    </link>
    <link 
     xmlns:thr="http://purl.org/syndication/thread/1.0" 
     href="https://www.dulcinea.com/forums/atom/replies?replyUuid=1f3be6f0-65f1-4326-b25b-12de8dd74acb" 
     rel="replies" 
     type="application/atom+xml" 
     thr:count="0">
    </link>
    <thr:in-reply-to 
     xmlns:thr="http://purl.org/syndication/thread/1.0" 
     href="https://www.dulcinea.com/forums/atom/topic?topicUuid=2A1GC0A80221E5C54FA8D3BE4D1E1B000032" 
     ref="urn:lsid:ibm.com:forum:2A1GC0A80221E5C54FA8D3BE4D1E1B000032" 
     type="application/atom+xml">
    </thr:in-reply-to>
    <content type="html">updated reply test</content>
    <snx:permissions xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
     none, create_forum, view_forum, edit_forum, del_forum, create_post, edit_personal_post, edit_all_post, 
     del_personal_post, del_all_post, pin_topic, subscribe, lock_node, add_member, delete_member, 
     create_topictag, del_all_topictag, del_personal_topictag, create_forumtag, del_all_forumtag, 
     del_personal_forumtag, view_category, edit_personal_question, edit_all_question
    </snx:permissions>
</entry>

Response returned by the server
HTTP/1.1 200 OK