To add an attribute, pass the name, group id and product code (optional) as a parameter.
URL Query Parameters
name - The name of the product attribute i.e. “Extra Memory” or “Gift Wrap”
attribute_group_id - The attribute group id the attribute is being assigned to
code - The product code of the product you wish to assign as an attribute (optional)