catalog Product Repository V1Save Post
POST {{baseUrl}}/V1/products
Create product
Request Body
{"product"=>{"sku"=>"<string>", "attribute_set_id"=>"<integer>", "created_at"=>"<string>", "custom_attributes"=>[{"attribute_code"=>"tempor nisi adipisicing fugiat", "value"=>"cillum est commodo ad"}, {"attribute_code"=>"cillum Excepteur eiusmod ullamco anim", "value"=>"reprehenderi"}], "extension_attributes"=>{"bundle_product_options"=>[{"extension_attributes"=>"<object>", "option_id"=>"<integer>", "position"=>"<integer>", "product_links"=>[{"is_default"=>"<boolean>", "price"=>"<number>", "price_type"=>"<integer>", "can_change_quantity"=>"<integer>", "extension_attributes"=>"<object>", "id"=>"<string>", "option_id"=>"<integer>", "position"=>"<integer>", "qty"=>"<number>", "sku"=>"<string>"}, {"is_default"=>"<boolean>", "price"=>"<number>", "price_type"=>"<integer>", "can_change_quantity"=>"<integer>", "extension_attributes"=>"<object>", "id"=>"<string>", "option_id"=>"<integer>", "position"=>"<integer>", "qty"=>"<number>", "sku"=>"<string>"}], "required"=>"<boolean>", "sku"=>"<string>", "title"=>"<string>", "type"=>"<string>"}, {"extension_attributes"=>"<object>", "option_id"=>"<integer>", "position"=>"<integer>", "product_links"=>[{"is_default"=>"<boolean>", "price"=>"<number>", "price_type"=>"<integer>", "can_change_quantity"=>"<integer>", "extension_attributes"=>"<object>", "id"=>"<string>", "option_id"=>"<integer>", "position"=>"<integer>", "qty"=>"<number>", "sku"=>"<string>"}, {"is_default"=>"<boolean>", "price"=>"<number>", "price_type"=>"<integer>", "can_change_quantity"=>"<integer>", "extension_attributes"=>"<object>", "id"=>"<string>", "option_id"=>"<integer>", "position"=>"<integer>", "qty"=>"<number>", "sku"=>"<string>"}], "required"=>"<boolean>", "sku"=>"<string>", "title"=>"<string>", "type"=>"<string>"}], "configurable_product_links"=>["<integer>", "<integer>"], "configurable_product_options"=>[{"attribute_id"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "is_use_default"=>"<boolean>", "label"=>"<string>", "position"=>"<integer>", "product_id"=>"<integer>", "values"=>[{"value_index"=>"<integer>", "extension_attributes"=>"<object>"}, {"value_index"=>"<integer>", "extension_attributes"=>"<object>"}]}, {"attribute_id"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "is_use_default"=>"<boolean>", "label"=>"<string>", "position"=>"<integer>", "product_id"=>"<integer>", "values"=>[{"value_index"=>"<integer>", "extension_attributes"=>"<object>"}, {"value_index"=>"<integer>", "extension_attributes"=>"<object>"}]}], "downloadable_product_links"=>[{"sort_order"=>"<integer>", "is_shareable"=>"<integer>", "price"=>"<number>", "link_type"=>"<string>", "sample_type"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "link_file"=>"<string>", "link_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "link_url"=>"<string>", "number_of_downloads"=>"<integer>", "sample_file"=>"<string>", "sample_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "sample_url"=>"<string>", "title"=>"<string>"}, {"sort_order"=>"<integer>", "is_shareable"=>"<integer>", "price"=>"<number>", "link_type"=>"<string>", "sample_type"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "link_file"=>"<string>", "link_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "link_url"=>"<string>", "number_of_downloads"=>"<integer>", "sample_file"=>"<string>", "sample_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "sample_url"=>"<string>", "title"=>"<string>"}], "downloadable_product_samples"=>[{"title"=>"<string>", "sort_order"=>"<integer>", "sample_type"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "sample_file"=>"<string>", "sample_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "sample_url"=>"<string>"}, {"title"=>"<string>", "sort_order"=>"<integer>", "sample_type"=>"<string>", "extension_attributes"=>"<object>", "id"=>"<integer>", "sample_file"=>"<string>", "sample_file_content"=>{"file_data"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "extension_attributes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "sample_url"=>"<string>"}], "giftcard_amounts"=>[{"attribute_id"=>"<integer>", "website_id"=>"<integer>", "value"=>"<number>", "website_value"=>"<number>", "extension_attributes"=>"<object>"}, {"attribute_id"=>"<integer>", "website_id"=>"<integer>", "value"=>"<number>", "website_value"=>"<number>", "extension_attributes"=>"<object>"}], "stock_item"=>{"qty"=>"<number>", "is_in_stock"=>"<boolean>", "is_qty_decimal"=>"<boolean>", "show_default_notification_message"=>"<boolean>", "use_config_min_qty"=>"<boolean>", "min_qty"=>"<number>", "use_config_min_sale_qty"=>"<integer>", "min_sale_qty"=>"<number>", "use_config_max_sale_qty"=>"<boolean>", "max_sale_qty"=>"<number>", "use_config_backorders"=>"<boolean>", "backorders"=>"<integer>", "use_config_notify_stock_qty"=>"<boolean>", "notify_stock_qty"=>"<number>", "use_config_qty_increments"=>"<boolean>", "qty_increments"=>"<number>", "use_config_enable_qty_inc"=>"<boolean>", "enable_qty_increments"=>"<boolean>", "use_config_manage_stock"=>"<boolean>", "manage_stock"=>"<boolean>", "low_stock_date"=>"<string>", "is_decimal_divided"=>"<boolean>", "stock_status_changed_auto"=>"<integer>", "extension_attributes"=>"<object>", "item_id"=>"<integer>", "product_id"=>"<integer>", "stock_id"=>"<integer>"}}, "id"=>"<integer>", "media_gallery_entries"=>[{"media_type"=>"<string>", "label"=>"<string>", "position"=>"<integer>", "disabled"=>"<boolean>", "types"=>["<string>", "<string>"], "content"=>{"base64_encoded_data"=>"<string>", "type"=>"<string>", "name"=>"<string>"}, "extension_attributes"=>{"video_content"=>{"media_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_provider"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_url"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_title"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_description"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_metadata"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, "file"=>"<string>", "id"=>"<integer>"}, {"media_type"=>"<string>", "label"=>"<string>", "position"=>"<integer>", "disabled"=>"<boolean>", "types"=>["<string>", "<string>"], "content"=>{"base64_encoded_data"=>"<string>", "type"=>"<string>", "name"=>"<string>"}, "extension_attributes"=>{"video_content"=>{"media_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_provider"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_url"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_title"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_description"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "video_metadata"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, "file"=>"<string>", "id"=>"<integer>"}], "name"=>"<string>", "options"=>[{"product_sku"=>"<string>", "title"=>"<string>", "type"=>"<string>", "sort_order"=>"<integer>", "is_require"=>"<boolean>", "extension_attributes"=>"<object>", "file_extension"=>"<string>", "image_size_x"=>"<integer>", "image_size_y"=>"<integer>", "max_characters"=>"<integer>", "option_id"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "sku"=>"<string>", "values"=>[{"title"=>"<string>", "sort_order"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "option_type_id"=>"<integer>", "sku"=>"<string>"}, {"title"=>"<string>", "sort_order"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "option_type_id"=>"<integer>", "sku"=>"<string>"}]}, {"product_sku"=>"<string>", "title"=>"<string>", "type"=>"<string>", "sort_order"=>"<integer>", "is_require"=>"<boolean>", "extension_attributes"=>"<object>", "file_extension"=>"<string>", "image_size_x"=>"<integer>", "image_size_y"=>"<integer>", "max_characters"=>"<integer>", "option_id"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "sku"=>"<string>", "values"=>[{"title"=>"<string>", "sort_order"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "option_type_id"=>"<integer>", "sku"=>"<string>"}, {"title"=>"<string>", "sort_order"=>"<integer>", "price"=>"<number>", "price_type"=>"<string>", "option_type_id"=>"<integer>", "sku"=>"<string>"}]}], "price"=>"<number>", "product_links"=>[{"sku"=>"<string>", "link_type"=>"<string>", "linked_product_sku"=>"<string>", "linked_product_type"=>"<string>", "position"=>"<integer>", "extension_attributes"=>{"qty"=>"<number>"}}, {"sku"=>"<string>", "link_type"=>"<string>", "linked_product_sku"=>"<string>", "linked_product_type"=>"<string>", "position"=>"<integer>", "extension_attributes"=>{"qty"=>"<number>"}}], "status"=>"<integer>", "tier_prices"=>[{"customer_group_id"=>"<integer>", "qty"=>"<number>", "value"=>"<number>", "extension_attributes"=>"<object>"}, {"customer_group_id"=>"<integer>", "qty"=>"<number>", "value"=>"<number>", "extension_attributes"=>"<object>"}], "type_id"=>"<string>", "updated_at"=>"<string>", "visibility"=>"<integer>", "weight"=>"<number>"}, "saveOptions"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
""