Skip to main content
PUT/products/:id/

Update product

You can update a specific product.

AttributesTypeRequiredDescription
custom_idstringnoA unique identifier for the product which is provided by the client. Usually related to the product’s SKU.
idintegeryesA unique identifier for the product which is given by User.com automatically.
brand_namestringnoA brand name.
categoriesinteger(list)noA list of categories' ids.
citystringnoAn origin city of a product.
countrystringnoAn origin country of a product.
created_atdatetimenoA 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_atdatetimenoA date of last product update.

Request​

curl -X PUT
"https://<your_app_subdomain>.user.com/api/public/products/: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/:id/",
"image_url": "https://myshop.com/media/products/myproduct.jpg",
"attributes": [],
"categories": []
}