Skip to main content
POST/products/

Create product

You can create a product.

AttributesTypeRequiredDescription
custom_idstringyesA unique identifier for the product which is provided by the client. Usually related to the product’s SKU.
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 POST
"https://<your_app_subdomain>.user.com/api/public/products/"
-H 'authorization: Token <your_64_char_api_key>'
-H 'content-type: application/json'
-H "Accept: */*; version=2"
-d '{
"name": "my 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": "my 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/",
"image_url": "https://myshop.com/media/products/myproduct.jpg",
"attributes": [],
"categories": []
}