Skip to main content
POST/products-by-id/

Create product

You can create a product.

Attributes

Optional unless marked required

custom_idstringrequired
A unique identifier for the product provided by the client.
brand_namestring
A brand name.
categoriesinteger
A list of categories' ids.
citystring
An origin city of a product.
countrystring
An origin country of a product.
created_atstring
A creation date of a product.
image_urlstring
A URL of a product image.
namestring
A product name.
product_urlstring
A URL of a product.
tagsstring
A list of tags.
target_groupstring
A name of a target
updated_atstring
A date of last product update.

Request​

curl -X POST "https://<your_app_subdomain>.user.com/api/public/products-by-id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"custom_id": "rain-jacket",
"name": "Rain jacket",
"product_url": "https://example.com/products/rain-jacket",
"image_url": "https://example.com/images/rain-jacket.jpg",
"brand_name": "Northpeak"
}'

Response examples​

{
"id": 117,
"name": "Rain jacket",
"custom_id": "rain-jacket",
"created_at": "2026-11-10T09:33:42.480312Z",
"updated_at": "2026-11-10T09:33:42.480324Z",
"product_url": "https://example.com/products/rain-jacket",
"image_url": "https://example.com/images/rain-jacket.jpg",
"attributes": [],
"tags": [],
"target_group": null,
"brand_name": "Northpeak",
"city": null,
"country": null,
"qty": null,
"description": null,
"special_price": 0,
"categories": []
}

Response fields​

Fields returned in the 201 Created response body.

idinteger
ID of the product.
namestring
A product name.
custom_idstring
A unique identifier for the product which is provided by the client. Usually related to the product’s SKU.
created_atstring (date-time)
A creation date of a product.
updated_atstring (date-time)
A date of last product update.
product_urlstring (URL)
A URL of a product.
image_urlstring (URL)
A URL of a product image.
attributesarray
Custom product attributes that have a value, each with name, name_std, value, description and value_type.
tagsarray
A list of tags.
target_groupstringnullable
A name of a target
brand_namestring
A brand name.
citystringnullable
An origin city of a product.
countrystringnullable
An origin country of a product.
qtyintegernullable
Quantity of the product, or null if not set.
descriptionstringnullable
Description of the product, or null.
special_priceinteger
Special price of the product, as a whole number; 0 if not set.
categoriesarray
A list of categories' ids.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.