POST /V1/winkelstraat/catalog/product

Body

  • products array[object] Required
    Hide products attributes Show products attributes object
    • categories array[string]
    • images array[object]
      Hide images attributes Show images attributes object
      • code string Required
      • hash string Required
      • mime_type string Required
      • size integer Required
      • url string Required
    • uuid string Required
    • children array[object] Required
    • type string Required
    • attributes array[object] Required
      Hide attributes attributes Show attributes attributes object
      • key string Required
      • value string Required

Body

  • products array[object] Required
    Hide products attributes Show products attributes object
    • categories array[string]
    • images array[object]
      Hide images attributes Show images attributes object
      • code string Required
      • hash string Required
      • mime_type string Required
      • size integer Required
      • url string Required
    • uuid string Required
    • children array[object] Required
    • type string Required
    • attributes array[object] Required
      Hide attributes attributes Show attributes attributes object
      • key string Required
      • value string Required

Responses

  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

POST /V1/winkelstraat/catalog/product
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>