curl --request POST \
--url http://localhost:3000/v1/products \
--header 'Content-Type: application/json' \
--data '
{
"scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"is_rfc_item": true,
"selling_price": 1,
"brand": "<string>",
"description": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subcategory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"sellable_product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxonomy_id": "<string>",
"name": "<string>",
"selling_price": 123,
"is_active": true,
"is_rfc_item": true
}
}Creates a new sellable product from an existing scraped product.
curl --request POST \
--url http://localhost:3000/v1/products \
--header 'Content-Type: application/json' \
--data '
{
"scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"is_rfc_item": true,
"selling_price": 1,
"brand": "<string>",
"description": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subcategory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"sellable_product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxonomy_id": "<string>",
"name": "<string>",
"selling_price": 123,
"is_active": true,
"is_rfc_item": true
}
}Product created
Show child attributes