Add column attribute to product

How to add a column attribute to product using Management API

This article explains the column attribute only. See main page for general information about adding product attributes. 

Add column attribute with value to product

URL

POST https://api.bluestonepim.com/pim/products/{id}/attributes/column

Request body

{
  "definitionId": "{attribute id}",
"column": {
        "60869a9152faff000cd1ab14": "First value",
        "60869a9a52faff000cd1ab16": "Second value"
    },
}

Use attribute id in definitionId. In the column property, the keys are column id's from the attribute definition. See how to get attribute definition and value id's.  

Response

If successful, this will result in a 201 - Created response. This means the attribute has been added to the product with the values.