Merge tags

A client program can merge two tags as follows:

  1. 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 into tag:folksonomy@escenic.com,2012:destination-tag

    You can merge more than one tag at once by adding more payloads to the <list> element

  2. Save the Payload as a file.

  3. POST the file to the merge resource

    curl -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