Copying an activity entry
Added by IBM contributorPaul Bastide | 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 copy an activity node to another activity node, use an HTTP POST request.

To duplicate an activity node to another activity node, send an HTTP POST request with both the UUID of the destination node where the activity node is to be duplicated and the UUID
of the activity node that is to be duplicated. Entry,

To Do can be duplicated to Activities under other Entry, To Do, and Activities. Section can only be duplicated under an Activity.

Note: You can duplicate a reply with replies, and you can duplicate a full thread to a different destination or Activity.

Input
Method URI Description
POST /activities/service/atom2/copyEntry copies an entry from one activity to another.
Name Type Optional Description
activityNodeUuid
string No The activity node or reply which is to be copied.
destNodeUuid
string No The destination node or reply which will contain the new entry.
position
string No Position relative to other entries of the destination node.
Output
Code Description
200
The request was received successfully.
400
Returned if either of the mandatory parameters is missing / empty OR if the
destination node has been deleted or invalid OR if the destination node is of the
wrong type (i.e. not of type NodeTypes.ENTRY or NodeTypes.TASK or
NodeTypes.SECTION or NodeTypes.REPLY) OR if an error occurred parsing the
position (i.e. if position was not a number) OR if the source node value is invalid
404
Returned if either of the node was not found
401
Unauthorized. Returned when no authenticated user or no userid, email, or key
parameter are provided on the request
403
Forbidden. The server refuses to fulfill a request, typically because the request was
for an object that you don't have permission to access.
Examples
POST /activities/service/atom2/copyEntry?destNodeUuid=8c936355-21f9-4aa2-8911- 0ccdfcce42dd&activityNodeUuid=e0cd25fa-ab22-48c4-8eeb-8a4d084261a9

Response returned by the server
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:snx="http://www.ibm.com/xmlns/prod/sn"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<id>urn:lsid:ibm.com:oa:8c936355-21f9-4aa2-8911-0ccdfcce42dd</id>
<title type="text">Source ActivityNode</title>
<updated>2014-06-13T10:54:46Z</updated>
<published>2014-06-13T10:54:46Z</published>
<author>
<name>Amy Jones1</name>
<email>ajones1@janet.iris.com</email>
<snx:userid>4cbc45c0-16a7-1033-9239-95472f45d54f</snx:userid>
<snx:ldapid>60f793b8-5942-4cd8-b140-e1337e0840b4</snx:ldapid>
<snx:userState>active</snx:userState>
<snx:isExternal>false</snx:isExternal>
</author>
<contributor>
<name>Amy Jones1</name>
<email>ajones1@janet.iris.com</email>
<snx:userid>4cbc45c0-16a7-1033-9239-95472f45d54f</snx:userid>
<snx:ldapid>60f793b8-5942-4cd8-b140-e1337e0840b4</snx:ldapid>
<snx:userState>active</snx:userState>
<snx:isExternal>false</snx:isExternal>
</contributor>
<category label="Entry" scheme="http://www.ibm.com/xmlns/prod/sn/type"
term="entry"/>
<category label="Internal"
scheme="http://www.ibm.com/xmlns/prod/sn/flags" term="internal"/>
<thr:in-reply-to
href="https://apps.na.collbserv.com/activities/service/atom2/activitynode?
activityNodeUuid=ac22ddd4-d27a-46c9-992e-f35d38d4ff04"
ref="urn:lsid:ibm.com:oa:ac22ddd4-d27a-46c9-992e-f35d38d4ff04"
source="urn:lsid:ibm.com:oa:ac22ddd4-d27a-46c9-992e-f35d38d4ff04"
type="application/atom+xml"/>
<snx:activity>ac22ddd4-d27a-46c9-992e-f35d38d4ff04</snx:activity>
<link
href="https://apps.na.collbserv.com/activities/service/atom2/activitynode?
activityNodeUuid=8c936355-21f9-4aa2-8911-0ccdfcce42dd"
rel="edit" type="application/atom+xml"/>
<link
href="https://apps.na.collbserv.com/activities/service/atom2/activitynode?
activityNodeUuid=8c936355-21f9-4aa2-8911-0ccdfcce42dd"
rel="self" type="application/atom+xml"/>
<link
href="https://apps.na.collbserv.com/activities/service/html/activityentry?
uuid=8c936355-21f9-4aa2-8911-0ccdfcce42dd"
rel="alternate" type="application/xhtml+xml"/>
<link
href="https://apps.na.collbserv.com/activities/service/html/activityentry?
uuid=8c936355-21f9-4aa2-8911-0ccdfcce42dd"
rel="alternate" type="text/html"/>
<snx:position>1000</snx:position>
<snx:depth>1</snx:depth>
<snx: