Update a PV module
PATCH/v1/materials/pv-modules/:id
Changes a PV module. Send only the fields to change; the others keep their value. For a new purchase price send purchasePrice with pricePerPiece and vendorName: the price this vendor already has for the product is updated (a new vendor gets one) and becomes the current price. To take the product off new offers without deleting it, send archived: true. Requires the write:materials scope. To find the product by its manufacturer article number instead of the id, call the same method on /v1/materials/pv-modules?manufacturerArticleNumber=….
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The PV module after the change.
validation_error: the body, a path or a query parameter is not valid. message names each problem, e.g. firstName: Required.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such record in your company.
duplicate_internal_article_number: another active product already has this internal article number.
db_error: the database refused or failed the request. message has the details.