Skip to main content
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"
  		}

}'
{"success":true}
1

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
--url https://api-v2.production.higg.org/pic-api/v1/products/update/{productId} \
2

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.
"weightIsPrimaryData": true,
3

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
"frenchLabelCountry":{
    "code":"BD",
    "name":"Bangladesh"},
4

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
"frenchLabelDyeingCountry": {
    "code": "BD",
    "name": "Bangladesh"
},
5

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
"frenchLabelFabricCountry": {
    "code": "BD",
    "name": "Bangladesh"
}