Insert a Node

To insert a node into OpenText, your XML must include the following properties and metadata fields:

Type Required Name Description
Property Set this or Node ParentNode The parent node for the new node you want to insert.
Property Set this or ParentNode Node The ID of the node to insert. When you specify a node ID that already exists, the connector inserts a new version of the document.
Property Optional Type The OpenText object type (default 144).
Metadata field Optional mime_type The MIME type for the content.

For example, the value of your insertXML action parameter might look like this:

<insertXML>      
  <insert>
    <property name="ParentNode" value="..."/>
    <property name="Type" value="144"/>
    <xmlmetadata>
      <mime_type>application/msword</mime_type>
    </xmlmetadata>
    <file>
      <type>content</type>
      <displayname>filename</displayname>
      <content>base-64-content</content>
    </file>
  </insert>
</insertXML>