Skip to content

AttributeTemplateOption_Set_Default#


Description#

This function sets the default attribute option within an attribute template.

Request Parameters#

Parameter
Type Description
AttributeTemplate option_id Number The id number of the option to be set as default in an attribute template
AttributeTemplate option_default Boolean Boolean value indicating if the option is set to default (1)

Response Parameters#

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

Example Request#

{
    "Store_code": "beta",
    "Function": "AttributeTemplateOption_Set_Default",
    "AttributeTemplateOption_ID": 7,
    "AttributeTemplateOption_Default": 1
}

Example Response#

{
    "success": 1
}

Error Responses#

Error Code Error Message Error Description
MER-JSN-PRD-00031 Option not found Option not found