Create a simple product
Learn how to create a simple product using the REST API and the Adobe Commerce Admin.
이 비디오는 누구의 것입니까?
- 웹 사이트 관리자
- eCommerce merchandisers
- New Adobe Commerce developers who want to learn how to create products in Adobe Commerce using the REST API.
비디오 콘텐츠
Create a product using curl
curl --location '{{your.url.here}}/rest/default/V1/products' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{Your Bearer Token}}' \
--header 'Cookie: PHPSESSID=a42da0096288718c9556f77549c6305f; private_content_version=564dde2976849891583a9a649073f01e' \
--data '{
"product": {
"sku": "some-product-sku",
"name": "My curl created product test",
"attribute_set_id": 4,
"price": 222,
"type_id": "simple"
}
}
Get a product using curl
curl --location '{{your.url.here}}rest/default/V1/products/some-product-sku' \
--header 'Authorization: Bearer {{Your Bearer Token}}' \
--header 'Cookie: private_content_version=3b797a6cc3c5c71f2193109fb9838b12'
추가 리소스
recommendation-more-help
commerce-learn-help-home