Skip to content



This function updates an option in an attribute template.

Request Parameters#

Type Description
AttributeTemplateOption_id Number The id number of the attribute template option to be updated
code String Attribute template option code to be updated
prompt String The prompt to be offered for selecting the updated attribute template option
image String Filepath for attribute template option image being updated
price Number The updated price of the attribute template option
cost Number The cost of the attribute template option
weight Number The weight of the attribute template option
default Boolean Boolean value indicating if the attribute template option is the default selection for the Attribute Template

Response Parameters#

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

Example Request#

    "Store_code": "beta",
    "Function": "AttributeTemplateOption_Update",
    "AttributeTemplateOption_ID": 4,
    "Code": "XL",
    "Prompt": "x-large",
    "Image": "",
    "Price": 0.0,
    "Cost": 0.0,
    "Weight": 0.0,
    "Default": 0

Example Response#

    "success": 1

Error Responses#

Error Code Error Message Error Description
MER-UTL-QUOTES-00032 Attribute template not found Attribute template not found