PATCH /manager/products/{id}

Path parameters

  • id integer Required

    Numeric ID of the product to update

application/json

Body Required

  • type string(nullable)
  • name string(nullable)
  • description string(nullable)
  • sticker string(nullable)
  • image string(nullable)
  • active boolean(nullable)
  • sku string(nullable)
  • external_id string(nullable)
  • price number(nullable)
  • stock number(nullable)
  • stock_available number(nullable)
  • youtube string(nullable)
  • image_instagram string(nullable)
  • url string(nullable)
  • lang string(nullable)

    Values are fr_FR, en_GB, de_DE, or es_ES.

Responses

  • 200 application/json

    Returns the updated product

  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Product not found

PATCH /manager/products/{id}
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/products/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"type":"string","name":"string","description":"string","sticker":"string","image":"string","active":true,"sku":"string","external_id":"string","price":42.0,"stock":42.0,"stock_available":42.0,"youtube":"string","image_instagram":"string","url":"string","lang":"fr_FR"}'
Request examples
{
  "type": "string",
  "name": "string",
  "description": "string",
  "sticker": "string",
  "image": "string",
  "active": true,
  "sku": "string",
  "external_id": "string",
  "price": 42.0,
  "stock": 42.0,
  "stock_available": 42.0,
  "youtube": "string",
  "image_instagram": "string",
  "url": "string",
  "lang": "fr_FR"
}