application/json
POST
/V1/import/csv
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/import/csv' \
--header "Content-Type: application/json" \
--data '{"source":{"locale":"string","entity":"string","behavior":"string","validation_strategy":"string","allowed_error_count":"string","csv_data":"string","import_field_separator":"string","import_multiple_value_separator":"string","import_empty_attribute_value_constant":"string","import_images_file_dir":"string"}}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/import/csv' \
--header "Content-Type: application/xml"
Request examples
{
"source": {
"locale": "string",
"entity": "string",
"behavior": "string",
"validation_strategy": "string",
"allowed_error_count": "string",
"csv_data": "string",
"import_field_separator": "string",
"import_multiple_value_separator": "string",
"import_empty_attribute_value_constant": "string",
"import_images_file_dir": "string"
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<source>
<locale>string</locale>
<entity>string</entity>
<behavior>string</behavior>
<validation-strategy>string</validation-strategy>
<allowed-error-count>string</allowed-error-count>
<csv-data>string</csv-data>
<import-field-separator>string</import-field-separator>
<import-multiple-value-separator>string</import-multiple-value-separator>
<import-empty-attribute-value-constant>string</import-empty-attribute-value-constant>
<import-images-file-dir>string</import-images-file-dir>
</source>
</root>
Response examples (200)
[
"string"
]
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
<root>string</root>
</root>
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (401)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>