Moving fields between nodes
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 move a field to another activity node, use an HTTP PUT request.

Send an HTTP PUT request with the UUID of the destination node to which the field is to be moved, and the UUID of the field that is to be moved.

Input
Method URI Description
PUT /activities/service/atom2/moveField
Name Type Optional Description
destNodeUuid
string No The UUID of the node to which the field is to be moved
fieldUuid
string No The UUID of the field that is to be moved
position
int Yes Node position - typically a multiple of 1000.
Output
Content Type: application/atom+xml
Code Description
400
Returned if either of the mandatory parameters is missing / empty OR if the destination node has been deleted or null OR if the destination node is of the wrong type (i.e. not of type NodeTypes.ENTRY or NodeTypes.TASK or NodeTypes.SECTION) OR if an error occurred parsing the position (i.e. if position was not a number) OR if the destination node is of type null
404
Returned if the destination node is not found
200
OK. Indicates that the request was received successfully.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
Examples
PUT /activities/service/atom2/moveField?destNodeUuid=8c936355-21f9-4aa2-8911-0ccdfcce42dd&fieldUuid=e0cd25fa-ab22-48c4-8eeb-8a4d084261a7

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:permissions>none, create_activity, view_activity, edit_activity, delete_activity, activity_owner, edit_activity_tags, design_activity, edit_statements, delete_statements, add_members, delete_members, create_entries, edit_personal_entries, edit_all_entries, delete_personal_entries, delete_all_entries, edit_personal_entry_tags, edit_all_entry_tags, view_members</snx:permissions>
  <summary type="text"/>
  <snx:field fid="c3707df8-1450-4ca9-b127-227772e835f4" name="test_text"
    position="1000" type="text">
    <summary type="text">Test_Text_Field</summary>
  </snx:field>
</entry>