cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple select custom attributes

Multiple select custom attributes

[update] solved using 

rest/all/V1/products/{sku} 

api instead of

rest/V1/products/{sku}

 

 

Hello. I'm using magento rest api to create a product and I need to insert a custom attribute that is a multiple select. I tried using an array as a value:

{"attribute_code": "specifico_per","value": ["adulti","bambini"]}

but I get the following error:

{
    "message": "Error occurred during \"custom_attributes\" processing. Attribute \"specifico_per\" has invalid value. The \"array\" value's type is invalid. The \"string\" type was expected. Verify and try again.",
    "trace": null
}

 How should I send multiple select attributes?

 

Thanks