Skip to content

Option_Set_Default#


Description#

This function sets a default option for a product attribute.

Request Parameters#

Parameter
Type Description
option_id
option_code
Number
String
The id number of the option to be deleted
The code of the option to be deleted
option_default Boolean Boolean value indicating if the option is set to default

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the api request was successful

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Option_Set_Default",
    "Option_ID": 5,
    "Option_Default": 1
}

Example Response#

{
    "success": 1
}

Error Responses#

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