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

Miva Developer Docs

This function updates an option in an attribute template.


Description#

This function updates an option in an attribute template.

Request Parameters#

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

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": "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