Creating CSV file for elements
Changed onCreating the CSV file for elements. <br> Parameters are: <ul>
<li><strong>elements</strong>: Array of element ids</li> <li><strong>columns</strong>: Describes the columns that should be exported. Can be obtained via the grid endpoint</li> <li><strong>config</strong>: Delimiter and header options</li> <li><strong>elementType</strong>: Type of element that should be exported</li> </ul> Delimiter can be set to anything, but the default is a <strong>semicolon</strong> <br> Header options are: <strong>no_header</strong>, <strong>title</strong> and <strong>name</strong><br> Download has to be triggered separately via the csv download route with the <strong>{jobRunId}</strong> returned in the responseRequest
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/export/csv
- Auth: none declared
Request body
Example request
{
"elements": [
83
],
"columns": [
{
"key": "id",
"locale": "en",
"type": "system.id",
"group": [
"system"
],
"config": [
{
"advancedColumns": [
{
"key": "simpleField",
"config": {
"field": "name"
}
}
],
"transformers": [
{
"key": "uppercase"
}
]
}
],
"width": 200
}
],
"config": {
"header": "title",
"delimiter": ";"
},
"elementType": "asset",
"classId": "CAR"
}Response
Successfully created <strong>jobRun</strong> for csv export
Example response
{
"jobRunId": 66
}Changes
- breaking
removed the enum value
element_to_exportof the request property/ - info
added the new optional request property
- info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
// - info
added the new
configuration_idsenum value to the request property/ - info
added the new
configuration_typeenum value to the request property/ - info
added the new
element_type_to_batch_deleteenum value to the request property/ - info
added the new
element_type_to_rewrite_referencesenum value to the request property/ - info
added the new
element_type_to_tagenum value to the request property/ - info
added the new
elements_to_exportenum value to the request property/ - info
added the new
elements_to_rewrite_referencesenum value to the request property/ - info
added the new
elements_to_tagenum value to the request property/ - info
added the new
export_formatenum value to the request property/ - info
added the new
items_to_batch_deleteenum value to the request property/ - info
added the new
items_to_deleteenum value to the request property/ - info
added the new
items_to_restoreenum value to the request property/ - info
added the new
new_owner_idenum value to the request property/
- breaking