Move a Tag
A client program can move a tag to a different parent within its tag structure as follows:
-
Create an Atom entry containing the identifier of the tag.
<entry xmlns="http://www.w3.org/2005/Atom"> <id>tag:folksonomy.escenic.com,2002:tag-ap</id> </entry>
-
Save the Atom entry as a file.
-
POST
the file either:-
to a tag structure URL (if it is to be a top-level tag):
curl -u user:password \
>
-X POST http://host-ip-address/webservice/escenic/classification/tag:folksonomy.escenic.com,2002 \>
--header "Content-Type:application/atom+xml" \>
--upload-file newTag.xml -
or to the URL of the required parent tag:
curl -u user:password \
>
-X POST http://host-ip-address/webservice/escenic/classification/tag/children/tag:folksonomy.escenic.com,2002:db:1346 \>
--header "Content-Type:application/atom+xml" \>
--upload-file newTag.xml
The posted entry must contain an
id
element containing the correct ID of the tag to be moved. -