Merge tags
A client program can merge two tags as follows:
-
Create a
Payload
containing the identifier of both tags<?xml version="1.0" encoding="ISO-8859-1"?> <payload xmlns="http://www.vizrt.com/types"> <field name="merge"> <list> <payload> <field name="tag"> <origin href="tag:folksonomy@escenic.com,2012:tag-to-merge" /> </field> </payload> </list> </field> <field name="with"> <origin href="tag:folksonomy@escenic.com,2012:destination-tag" /> </field> </payload>
The XML above will merge
tag:folksonomy@escenic.com,2012:tag-to-merge
intotag:folksonomy@escenic.com,2012:destination-tag
You can merge more than one tag at once by adding more payloads to the
<list>
element -
Save the Payload as a file.
-
POST the file to the
merge
resourcecurl -u user:password
>
-X POST http://host-ip-address/webservice/escenic/classification/merge \>
--header "Content-Type:application/vnd.vizrt.payload+xml" \>
--header "If-Match:*" \>
--upload-file mergeTags.xml