application/json
POST
/V1/winkelstraat/catalog/product
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/winkelstraat/catalog/product' \
--header "Content-Type: application/json" \
--data '{"products":[{"categories":["string"],"images":[{"code":"string","hash":"string","mime_type":"string","size":42,"url":"string"}],"uuid":"string","children":[{}],"type":"string","attributes":[{"key":"string","value":"string"}]}]}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/winkelstraat/catalog/product' \
--header "Content-Type: application/xml"
Request examples
{
"products": [
{
"categories": [
"string"
],
"images": [
{
"code": "string",
"hash": "string",
"mime_type": "string",
"size": 42,
"url": "string"
}
],
"uuid": "string",
"children": [
{}
],
"type": "string",
"attributes": [
{
"key": "string",
"value": "string"
}
]
}
]
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<products type="array">
<product>
<categories type="array">
<category>string</category>
</categories>
<images type="array">
<image>
<code>string</code>
<hash>string</hash>
<mime-type>string</mime-type>
<size type="integer">42</size>
<url>string</url>
</image>
</images>
<uuid>string</uuid>
<children type="array">
<child>
</child>
</children>
<type>string</type>
<attributes type="array">
<attribute>
<key>string</key>
<value>string</value>
</attribute>
</attributes>
</product>
</products>
</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 (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>