Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs

This function updates an attribute of a product.


Description#

This function updates an attribute of a product.

Request Parameters#

Parameter Type Required 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 No Updated attribute code
prompt String No Updated name of the attribute prompt
image String No Filepath for the updated attribute image
type String No Update of type of selector used for the attribute. One of radio, select, checkbox, text, memo, template or swatch-select
price Number No Updated price of the attribute
cost Number No Updated cost of the attribute
weight Number No Updated weight of the attribute
required Boolean No Boolean value indicating if selecting the updated attribute is required for purchase
inventory Boolean No 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": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Attribute_Update",
    "Attribute_ID": 3,
    "Code": "size",
    "Cost": "10.00",
    "Image": "",
    "Inventory": false,
    "Price": "20.00",
    "Prompt": "Size",
    "Required": false,
    "Type": "select",
    "Weight": "1.00"
}

Example Response#

{
  "success": 1
}