Export specified document contents
As shown above, a document or media content is put in an "item" XML tag with a content :
<item entity_type="document">
<completenesses/>
<tags/>
<workflows/>
<attributes/>
<link_attributes/>
<variants/>
</item>
<item entity_type="media">
<urls/>
<attributes/>
<link_attributes/>
</item>
For each associated document you can specify the content you want to export among the following :
- completeness
- tags
- workflows
- attributes/association attributes
- variants
Back to our previous case, we could specify contents as bellow (in grey) :
The corresponding key/value is
{
"content": {
"attribute": true,
"completeness": true,
"tag": true,
"variant": true,
"workflow": true
},
"linked_docs": [
{
"content": {
"attribute": true,
"urls": true
},
"document_type": "media",
"link_type": "child",
"linked_docs": [],
"xobject_type_slug": "article_images_bundle"
},
{
"content": {
"tag": true,
"workflow": true
},
"document_type": "reference_colori",
"link_type": "child",
"linked_docs": [
{
"content": {
"urls": true
},
"document_type": "media",
"link_type": "child",
"linked_docs": [],
"xobject_type_slug": "article_images_media"
},
{
"content": {
"attribute": true,
"completeness": true
},
"document_type": "reference",
"link_type": "parent",
"linked_docs": [],
"xobject_type_slug": "link_r_rc"
}
],
"xobject_type_slug": "link_bundle_rc"
}
]
}
No content
To exclude all contents from item, just set "content" = false
Export specific attributes
For each document type you can specify a set of attribute codes you want in the export :
With the following key/value :
{
"eav": [
"bundle_size",
"bundle_code_caracteristique"
],
"linked_docs": [
{
"document_type": "media",
"eav": [
"media_size",
"media_original_filename"
],
"link_type": "child",
"linked_docs": [],
"xobject_type_slug": "article_images_bundle"
},
{
"document_type": "reference_colori",
"eav": [
"rc_name",
"rc_description"
],
"link_type": "child",
"linked_docs": [
{
"document_type": "media",
"eav": [
"media_original_filename"
],
"link_type": "child",
"linked_docs": [],
"xobject_type_slug": "article_images_media"
},
{
"document_type": "reference",
"eav": [
"r_name"
],
"link_type": "parent",
"linked_docs": [],
"xobject_type_slug": "link_r_rc"
}
],
"xobject_type_slug": "link_bundle_rc"
}
]
}