Skip to main content
PUT/products-by-id/:custom_id/

Update product

You can update a specific product.

AttributesTypeRequiredDescription
custom_idintegeryesA unique identifier for the product provided by the client.
brand_namestringnoA brand name.
categoriesintegernoA list of categories' ids.
citystringnoAn origin city of a product.
countrystringnoAn origin country of a product.
created_atstringnoA creation date of a product.
image_urlstringnoA URL of a product image.
namestringnoA product name.
product_urlstringnoA URL of a product.
tagsstringnoA list of tags.
target_groupstringnoA name of a target
updated_atstringnoA date of last product update.

Request​

curl -X PUT
"https://<your_app_subdomain>.user.com/api/public/products-by-id/:custom_id/"
-H 'authorization: Token <your_64_char_api_key>'
-H 'content-type: application/json'
-d '{
"name": "updated product",
"custom_id": "my_product_id",
"product_url": "https://myshop.com/products/my_product/",
"image_url": "https://myshop.com/media/products/myproduct.jpg"
}'

Response​

{
"id": 50,
"name": "updated product",
"custom_id": "my_product_id",
"created_at": "2018-03-02T14:14:05.608704Z",
"updated_at": "2018-03-02T14:14:05.608742Z",
"product_url": "https://myshop.com/products/my_product/:custom_id/",
"image_url": "https://myshop.com/media/products/myproduct.jpg",
"attributes": [],
"categories": []
}