Skip to content

Attribute_Update#


Description#

This function updates an attribute of a product.

Request Parameters#

Parameter
Type Description
attribute_id
edit_attribute
attribute_code
Number
String
String
The id number of the attribute
The code of the attribute
The code of the attribute
code String Updated attribute code
prompt String Updated name of the attribute prompt
image String Filepath for the updated attribute image
type String Update of type of selector used for the attribute
price Number Updated price of the attribute
cost Number Updated cost of the attribute
weight Number Updated weight of the attribute
default Boolean Boolean value indicating if the updated attribute is the default selection for the product
required Boolean Boolean value indicating if selecting the updated attribute is required for purchase
inventory Boolean Boolean value indicating if the updated attribute is recorded in inventory

Response Parameters#

Parameter
Type Description
success Number 1 indicating a successful request.
0 indicating an unsuccessful request.

Example Request#

{
    "Store_code": "beta",
    "Function": "Attribute_Update",
    "Attribute_ID": 3,
    "Code": "size",
    "Cost": "10.00",
    "Default": false,
    "Image": "",
    "Inventory": false,
    "Price": "20.00",
    "Prompt": "Size",
    "Required": false,
    "Type": "select",
    "Weight": "1.00"
}

Example Response#

{
  "success": 1
}