Body

Body

Body

PATCH /external/api/products
curl \
 -X PATCH http://test.api.fygi.store/external/api/products \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '[{"id":"string","storeId":{"value":"string"},"name":{"value":"string"},"description":{"value":"string"},"handle":{"value":"string"},"vendor":{"value":"string"},"active":{"value":true},"isNotDiscountable":{"value":true},"ageGroupId":{"value":"string"},"relatedProductIds":{"value":["string"]},"imageUrls":{"value":["string"]},"categoryIds":{"value":["string"]},"dimensions":{"value":[{"name":"string","articleNumber":"string","barcode":"string","externalId":"string","sortIndex":42,"requiredDimensionId":"string","productOption1Value":"string","productOption2Value":"string","productOption3Value":"string","prices":[{"currencyCode":"string","amount":42,"taxPercent":42,"adjustmentType":"string"}],"availability":{"count":42}}]},"options":{"value":[{"name":"string","sortIndex":42,"values":["string"]}]}}]'
curl \
 -X PATCH http://test.api.fygi.store/external/api/products \
 -H "authorization: $API_KEY" \
 -H "Content-Type: text/json"
curl \
 -X PATCH http://test.api.fygi.store/external/api/products \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/*+json"
Request examples
[
  {
    "id": "string",
    "storeId": {
      "value": "string"
    },
    "name": {
      "value": "string"
    },
    "description": {
      "value": "string"
    },
    "handle": {
      "value": "string"
    },
    "vendor": {
      "value": "string"
    },
    "active": {
      "value": true
    },
    "isNotDiscountable": {
      "value": true
    },
    "ageGroupId": {
      "value": "string"
    },
    "relatedProductIds": {
      "value": [
        "string"
      ]
    },
    "imageUrls": {
      "value": [
        "string"
      ]
    },
    "categoryIds": {
      "value": [
        "string"
      ]
    },
    "dimensions": {
      "value": [
        {
          "name": "string",
          "articleNumber": "string",
          "barcode": "string",
          "externalId": "string",
          "sortIndex": 42,
          "requiredDimensionId": "string",
          "productOption1Value": "string",
          "productOption2Value": "string",
          "productOption3Value": "string",
          "prices": [
            {
              "currencyCode": "string",
              "amount": 42,
              "taxPercent": 42,
              "adjustmentType": "string"
            }
          ],
          "availability": {
            "count": 42
          }
        }
      ]
    },
    "options": {
      "value": [
        {
          "name": "string",
          "sortIndex": 42,
          "values": [
            "string"
          ]
        }
      ]
    }
  }
]
Request examples
[
  {
    "id": "string",
    "storeId": {
      "value": "string"
    },
    "name": {
      "value": "string"
    },
    "description": {
      "value": "string"
    },
    "handle": {
      "value": "string"
    },
    "vendor": {
      "value": "string"
    },
    "active": {
      "value": true
    },
    "isNotDiscountable": {
      "value": true
    },
    "ageGroupId": {
      "value": "string"
    },
    "relatedProductIds": {
      "value": [
        "string"
      ]
    },
    "imageUrls": {
      "value": [
        "string"
      ]
    },
    "categoryIds": {
      "value": [
        "string"
      ]
    },
    "dimensions": {
      "value": [
        {
          "name": "string",
          "articleNumber": "string",
          "barcode": "string",
          "externalId": "string",
          "sortIndex": 42,
          "requiredDimensionId": "string",
          "productOption1Value": "string",
          "productOption2Value": "string",
          "productOption3Value": "string",
          "prices": [
            {
              "currencyCode": "string",
              "amount": 42,
              "taxPercent": 42,
              "adjustmentType": "string"
            }
          ],
          "availability": {
            "count": 42
          }
        }
      ]
    },
    "options": {
      "value": [
        {
          "name": "string",
          "sortIndex": 42,
          "values": [
            "string"
          ]
        }
      ]
    }
  }
]
Request examples
[
  {
    "id": "string",
    "storeId": {
      "value": "string"
    },
    "name": {
      "value": "string"
    },
    "description": {
      "value": "string"
    },
    "handle": {
      "value": "string"
    },
    "vendor": {
      "value": "string"
    },
    "active": {
      "value": true
    },
    "isNotDiscountable": {
      "value": true
    },
    "ageGroupId": {
      "value": "string"
    },
    "relatedProductIds": {
      "value": [
        "string"
      ]
    },
    "imageUrls": {
      "value": [
        "string"
      ]
    },
    "categoryIds": {
      "value": [
        "string"
      ]
    },
    "dimensions": {
      "value": [
        {
          "name": "string",
          "articleNumber": "string",
          "barcode": "string",
          "externalId": "string",
          "sortIndex": 42,
          "requiredDimensionId": "string",
          "productOption1Value": "string",
          "productOption2Value": "string",
          "productOption3Value": "string",
          "prices": [
            {
              "currencyCode": "string",
              "amount": 42,
              "taxPercent": 42,
              "adjustmentType": "string"
            }
          ],
          "availability": {
            "count": 42
          }
        }
      ]
    },
    "options": {
      "value": [
        {
          "name": "string",
          "sortIndex": 42,
          "values": [
            "string"
          ]
        }
      ]
    }
  }
]