> ## 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

> This recipe shows you how to update an existing product in PIC with the required weight and country information.

```bash theme={null}
curl --request POST \
     --url https://api-v2.production.higg.org/pic-api/v1/products/update/{productId} \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: <<apiKey>>' \
     --header 'x-developer-request-token: <<apiKey>>' \
     --data '{
     "weightIsPrimaryData": true,
		 "frenchLabelCountry":{
				"code":"BD",
        "name":"Bangladesh"},  
		 "frenchLabelDyeingCountry": {
   			 "code": "BD",
    			"name": "Bangladesh"
 	 		},
 			"frenchLabelFabricCountry": {
    			"code": "BD",
    			"name": "Bangladesh"
  		}

}'
```

```json theme={null}
{"success":true}
```

<Steps>
  <Step title="Append end point with Product ID">
    ### productId

    Append the `products/update` end point with the Product ID of the product you want to update.

    *Example:*

    `/products/update/12abc123456789101de12345`

    ```bash theme={null}
    --url https://api-v2.production.higg.org/pic-api/v1/products/update/{productId} \
    ```
  </Step>

  <Step title="Set Weight">
    ### field: weightIsPrimaryData

    Field type: boolean

    * Set this field to: "true"
    * To generate a French Eco-Score, you must include primary data for *Product Weight*.

    ```json theme={null}
    "weightIsPrimaryData": true,
    ```
  </Step>

  <Step title="Set Country of Manufacture">
    ### object: frenchLabelCountry

    #### field: code

    set the 2 letter abbreviation for the country of manufacture

    #### field: name

    Set the full name of the country of manufacture in English

    ```json theme={null}
    "frenchLabelCountry":{
        "code":"BD",
        "name":"Bangladesh"},
    ```
  </Step>

  <Step title="Set Country of Finishing">
    ### object: frenchLabelDyeingCountry

    #### field: code

    set the 2 letter abbreviation for the country of Finishing

    #### field: name

    Set the full name of the country of Finishing in English

    ```json theme={null}
    "frenchLabelDyeingCountry": {
        "code": "BD",
        "name": "Bangladesh"
    },
    ```
  </Step>

  <Step title="Set Country of Textile Formation">
    ### object: frenchLabelFabricCountry

    #### field: code

    set the 2 letter abbreviation for the country of Textile Formation

    #### field: name

    Set the full name of the country of Textile Formation in English

    ```json theme={null}
    "frenchLabelFabricCountry": {
        "code": "BD",
        "name": "Bangladesh"
    }
    ```
  </Step>
</Steps>
