Update A Single Product

Request

PATCH https://backend.net0.com/v1/product/{productId}

This endpoint allows for the partial update of an existing product/SKU available on your Net0 account.

curl --location --request PATCH 'https://backend.net0.com/v1/products/2' \
--header 'x-api-key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Photoelectric Mug"
}'

Parameters

AttributeTypeDescriptionInRequired
productIdStringThe id of the product to updatepathtrue
nameStringThe name of the productbodyfalse
referenceNumberStringReference number of the productbodyfalse
logoImageUrlStringThe image url of the productbodyfalse
weightNumberDescribes the weight of the productbody

Response

The response is an object containing the updated product.

{
    "id": 2,
    "name": "Photoelectric Mug",
    "companyId": 2,
    "totalEmission": 0,
    "weight": 20,
    "referenceNumber": "wrwje-wenwfefw-cscsns",
    "logoImageUrl": "https://aws.amazonserveivce.net",
    "emissionKindId": "b3a6bba1-fb25-4797-9e4a-17154a946868",
    "createdAt": "2021-11-24T12:39:37.775Z",
    "updatedAt": "2021-11-26T23:54:57.155Z"
}