Hello,
When I create i new attribute via API, I cannot associate to the product the attribute I created.
The JSON I send to Update the product to associate the new Attribute.
{ "product":{ "id": 233, "sku": "1.765-2-19-22", "name": "RIB KNEE HIGH SOCKS Azul Royal 2", "attribute_set_id": 4, "price": 14.95, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2022-03-22 17:30:18", "updated_at": "2022-03-22 17:57:15", "weight": 0, "extension_attributes": { "website_ids": [ 1 ], "stock_item": { "item_id": 233, "product_id": 233, "stock_id": 1, "qty": 6, "is_in_stock": true, "is_qty_decimal": true, "show_default_notification_message": false, "use_config_min_qty": true, "min_qty": 0, "use_config_min_sale_qty": 1, "min_sale_qty": 1, "use_config_max_sale_qty": true, "max_sale_qty": 10000, "use_config_backorders": true, "backorders": 0, "use_config_notify_stock_qty": true, "notify_stock_qty": 1, "use_config_qty_increments": true, "qty_increments": 0, "use_config_enable_qty_inc": true, "enable_qty_increments": false, "use_config_manage_stock": true, "manage_stock": true, "low_stock_date": null, "is_decimal_divided": false, "stock_status_changed_auto": 0 } }, "product_links": [], "options": [], "media_gallery_entries": [], "tier_prices": [], "custom_attributes": [ { "attribute_code": "image", "value": "no_selection" }, { "attribute_code": "cor", "value": "44" }, { "attribute_code": "tamanho", "value": "318" }, { "attribute_code":"cor55", "value":"591" }, { "attribute_code": "small_image", "value": "no_selection" }, { "attribute_code": "thumbnail", "value": "no_selection" }, { "attribute_code": "swatch_image", "value": "no_selection" }, { "attribute_code": "options_container", "value": "container2" }, { "attribute_code": "msrp_display_actual_price_type", "value": "0" }, { "attribute_code": "url_key", "value": "rib-knee-high-socks-azul-royal-2-azul-royal-2" }, { "attribute_code": "required_options", "value": "0" }, { "attribute_code": "has_options", "value": "1" }, { "attribute_code": "tax_class_id", "value": "2" }, { "attribute_code": "category_ids", "value": [] }, { "attribute_code": "short_description", "value": "RIB KNEE HIGH SOCKS" }, { "attribute_code": "description", "value": "RIB KNEE HIGH SOCKS" } ] }, "saveOptions":true }
Is missing something?
Best regards,
Tiago Martins.