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
Attribute | Type | Description | In | Required |
---|---|---|---|---|
productId | String | The id of the product to update | path | true |
name | String | The name of the product | body | false |
referenceNumber | String | Reference number of the product | body | false |
logoImageUrl | String | The image url of the product | body | false |
weight | Number | Describes the weight of the product | body | |
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"
}