Basics

The V2 export contains XMLs of documents collections. Each document contains its data and the associated documents with their data. Here is an exemple :

<?xml version='1.0' encoding='utf-8'?>
<items>
	<item attribute_set_code="" code="119317000002" document_type_code="bundle" entity_type="document">
		<completenesses/>
		<tags/>
		<workflows/>
		<attributes/>
		<links type="article_images_bundle">
			<item code="0000001" entity_type="media">
				<urls/>
				<attributes/>
				<link_attributes/>
			</item>
		</links>
		<links type="link_bundle_rc">
			<item attribute_set_code="" code="119317000002_2" document_type_code="reference_coloris" entity_type="document">
				<completenesses/>
				<tags/>
				<workflows/>
				<attributes/>
				<link_attributes/>
				<variants/>
			</item>
		</links>
	</item>
	<item attribute_set_code="" code="119317000003" document_type_code="bundle" entity_type="document"/>
</items>

To generate a XML V2, a specific associated documents schema is needed for each document type.
Let's assume the following complete associated documents schema :

894

If you want to export a collection of Bundles you must specify the associated documents schema as bellow :

604

By adding a key/value named doctree_query_bundle

{
  "linked_docs": [
    {
      "xobject_type_slug": "article_images_bundle",
      "document_type": "media",
      "link_type": "child",
      "linked_docs": []
    },
    {
      "xobject_type_slug": "link_bundle_rc",
      "document_type": "reference_colori",
      "link_type": "child",
      "linked_docs": []
    }
  ]
}

📘

No association schema specified

If no associated documents schema was specified for a document type, it will get all one level parents and all one level children as an associated documents schema.

This XML file(s) produced is compressed in a zip file and a share URL is generated to download it.

📘

Multiple document types

If multiple document types are requested, each document type data will be generated in its own XML file.

📘

Large files

If the export file is larger than 15M, the XML file will be cut in part files before being compressed.

Here is another exemple

391

The corresponding key/value (doctree_query_reference ) is

{
  "linked_docs": [
    {
      "xobject_type_slug": "link_r_rc",
      "document_type": "reference_colori",
      "link_type": "child",
      "linked_docs": []
    }
  ]
}

A last exemple

422

And the corresponding key/value

{
  "linked_docs": [
    {
      "xobject_type_slug": "article_image_media",
      "document_type": "media",
      "link_type": "child",
      "linked_docs": []
    }
  ]
}