I'm able to save a product with a POST request to my REST API endpoint. Now I would like to save manufacture attribute,too.
To reproduce this issue send a POST request to insert a product (or a PUT request to update). I prepare this json structure.
{
"product": {
"sku": "code",
"name": "name",
"price": 5,
"attribute_set_id": 4,
"status": 1,
"visibility": 1,
"extension_attributes": {
"stock_item": {
"qty": 0,
"is_in_stock": false,
"is_qty_decimal": false,
"min_qty": "0",
"qty_increments": "0"
}
},
"custom_attributes": [{
"attribute_code": "barcode",
"value": "############"
}, {
"attribute_code": "family",
"value": "product family"
}, {
"attribute_code": "description",
"value": "product description"
}, {
"attribute_code": "category_ids",
"value": ["1", "2", "41", "53", "87"]
}, {
"attribute_code": "manufacturer",
"value": "213"
}]
}
}
I'm expecting that all custom_attributes will be saved to related product
This product is saved on my catalog but without manufacturer value, indeed the response about above request is
{
"id": 2059,
"sku": "code",
"name": "name",
"attribute_set_id": 4,
"status": 1,
"visibility": 1,
"type_id": "simple",
"created_at": "2019-06-17 08:02:23",
"updated_at": "2019-06-17 08:02:23",
"extension_attributes": {
"website_ids": [1],
"category_links": [{
"position": 0,
"category_id": "1"
}, {
"position": 0,
"category_id": "2"
}, {
"position": 0,
"category_id": "41"
}, {
"position": 0,
"category_id": "53"
}, {
"position": 0,
"category_id": "87"
}]
},
"product_links": [],
"options": [],
"media_gallery_entries": [],
"tier_prices": [],
"custom_attributes": [{
"attribute_code": "description",
"value": "description"
}, {
"attribute_code": "url_key",
"value": "name-of-product"
}, {
"attribute_code": "options_container",
"value": "container2"
}, {
"attribute_code": "barcode",
"value": "###########"
}, {
"attribute_code": "family",
"value": "product family"
}, {
"attribute_code": "required_options",
"value": "0"
}, {
"attribute_code": "has_options",
"value": "0"
}, {
"attribute_code": "category_ids",
"value": ["1", "2", "41", "53", "87"]
}]
}
Hi @scne. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.3-develop instance - upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@scne do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Hi @chohanbhagchand. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Verify that the issue is reproducible on 2.2-develop branch. Details
- Add the comment @magento give me 2.2-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x
@scne can you please use attribute code country_of_manufacture in place of manufacture I am able to save attribute value

Here is the response array which I get
===========================Response =======================

Please let me know if the issue is still persists
@chohanbhagchand thanks for your replay but I have to set manufacture (drop-down value on admin backend) with my REST request. All other custom attribute are ok i.e. _categories_ or _description_ or custom attribute _family_
@scne can you please send me your admin URL where manufacture attribute already set to any particular product. so it is easy to debug.
@chohanbhagchand do you need only admin URL of my magento or do you want admin and password, too? How can I send you securely?
@scne Please send me your developing instance where the issue occurred. with admin URL and credentials.
@chohanbhagchand give me your ip address because my instance is in maintenance mode. Admin url is this and credentials are developer:9dPuV5PC.
@scne I also unable to share my IP with you can you pls inbox me your cred in the mail my mail id is chohan.[email protected]
@scne Please put file which is emailed to you in the root folder of your server.
@scne here is the product which is I save in your backend

@scne now you are able to save manufacture attribute and also please note in the problem statement you will give manufacture id i.e. 213
{
"attribute_code": "manufacturer",
"value": "213"
}]
and in your backend, no manufacture value is associated with 213
Kindly let me know if your still facing problem to save :)
Your problem is that you are saving(sending to magento) the wrong value of manufacturer.
If you want to update the value of an attribute, you must send an existing value.
Basically, you must do a request to get the option_ids (value) of the manufacturer attribute.
Map them with your wanted value.
Send the correct (the remote) value along with the product.
@scne issue is resolved and is still if you are in problem then let me know.