Update a PV module by manufacturer article number
PATCH/v1/materials/pv-modules
Same as updating by id, but the product is found by its manufacturerArticleNumber (add manufacturerId when two manufacturers use the same number). Handy for syncing a price list, which carries these numbers but not our ids. Only active products are considered.
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.
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: no active product has this manufacturer article number.
ambiguous_key: several active products have this manufacturer article number; message lists their ids. Add manufacturerId or use the id. 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.