Delete Product Material

Request

DELETE https://backend.net0.com/v1/products/{productId}/materials/{materialId}

Delete an existing product material for a particular product available on your Net0 account with this endpoint.

curl --location --request DELETE 'https://backend.net0.com/v1/products/2/materials/2' \
--header 'x-api-key: <API_KEY>'

Parameters

AttributeTypeDescriptionIn
materialIdStringThe id of the product materialpath
productIdStringThe id of the productpath

Response

The response returns the deleted product material.

{
    "totalEmission": null,
    "createdAt": "2021-11-25T21:20:34.356Z",
    "updatedAt": "2021-11-25T21:20:34.356Z",
    "material": {
        "id": 2,
        "name": "Opemipo's Material",
        "materialType": "Material",
        "createdAt": "2021-11-25T21:20:34.350Z",
        "updatedAt": "2021-11-25T21:20:34.350Z",
        "totalEmission": 0,
        "companyId": 2
    }
}