Update Product
Updates an existing product.
Use this endpoint to update an existing product in your PIC product library.Documentation Index
Fetch the complete documentation index at: https://developer.worldly.io/llms.txt
Use this file to discover all available pages before exploring further.
PIC - Update Product with French Eco-Score requirements
Request body properties
| Name | Type | Description |
|---|---|---|
name | string | New name for the product. |
weight | number | New weight. Condition: If updated, and isMaterialWeight is false, this field is required. |
weightMeasureUnit | string (enum) | Unit for the weight. |
isMaterialWeight | boolean | Toggle whether weight is calculated from materials. |
taxonomyId | string | Update taxonomy ID. |
size | string | Update product size. |
productCategory | string | [DEPRECATED] The category of the product. Use categoryExpansionId instead. |
categoryExpansionId | string | The product category code. |
packaging | Array<PackagingData> | Replace packaging list. Each item requires packagingId and amount. |
materials | Array<MaterialsData> | Replace materials list. Each item requires materialId and netUse. |
components | Array<ComponentData> | Replace components list. Each item requires componentId and unit. |
addPurchaseOrder | Array<POData> | Add new purchase orders to the product. Items include purchaseOrderId, purchaseDate, amountPurchase, and assembly (with femId). |
updatePurchaseOrder | Array<POData> | Update existing purchase orders. Items require _id. |
removePurchaseOrder | Array<string> | List of purchase order IDs (_id) to remove. |
frenchLabelCountry | object<code, name> | [FRENCH ECO-SCORE] The product’s final assembly location. Check the location list here. |
frenchLabelDyeingCountry | object<code, name> | [FRENCH ECO-SCORE] The product’s preparation, dyeing, and finishing location. Check the location list here. |
frenchLabelFabricCountry | object<code, name> | [FRENCH ECO-SCORE] The product’s textile formation location. Check the location list here. |
frenchLabelOptionalFields | object | [FRENCH ECO-SCORE] Optional fields for durability and scoring. See the Optional Fields reference for details. |
weightIsPrimaryData | boolean | [FRENCH ECO-SCORE] Indicates if the weight data is primary data. |
Implementation details
- Partial updates: Most fields are optional. Providing them will update the value; omitting them usually leaves the existing value (standard PATCH/Update behavior), though the API treats this as a command object.
- Purchase order logic: The update logic for purchase orders is complex. You can
add,update, andremovepurchase orders in a single call.addPurchaseOrder: Appends new purchase orders.updatePurchaseOrder: Matches by_idand updates fields.removePurchaseOrder: Removes purchase orders by_id.
- FEM assessment IDs: When adding or updating purchase orders with assembly data, ensure you use valid FEM assessment IDs for the
femIdfield.
Path Parameters
Body
kilograms, grams, milligram, pound, ounce Determines what country this product was made in, for the French Label Eco-Scores.
Determines what country this product was dyed in, for the French Label Eco-Scores.
Determines what country this product was woven or knitted in, for the French Label Eco-Scores.
Optional durability fields for the French Label Eco-Score, gated by EnableFrenchEcoOptionalFields config key.
Response
Ok
API light version of a CorpRepProductEntity for the API. Ideally we would do this with a Pick or Omit, but tsoa doesn't recognice those
corpRep weight information
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".
This interface was referenced by Exports's JSON-Schema
via the definition "accountRef".
corpRep weight information
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".
corpRep weight information
Determines what country this product was made in, for the French Label Eco-Scores.
Determines what country this product was woven or knitted in, for the French Label Eco-Scores.
Determines what country this product was dyed in, for the French Label Eco-Scores.
Optional durability fields for the French Label Eco-Score, gated by EnableFrenchEcoOptionalFields config key.
Store information on whether a product is eligible for French Label Eco-Scores.
Determines the environmental impacts of a product based on mass, composition, place of manufacture, etc. (See https://ecobalyse.beta.gouv.fr/#/api)

