Option_Update#
Description#
This function updates an option for a product attribute.
Request Parameters#
| Parameter | Type | Description | 
|---|---|---|
| option_idoption_code | Number String | The id number of the option to be deleted The code of the option to be deleted | 
| code | String | Updated option code | 
| prompt | String | Updated name of the option prompt | 
| image | String | Filepath for the updated option image | 
| price | Number | Updated price of the option | 
| cost | Number | Updated cost of the option | 
| weight | Number | Updated weight of the option | 
| default | Boolean | Boolean value indicating if the updated option is the default selection for the product attribute | 
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_Update",
    "Option_ID": 3,
    "Code": "red",
    "Prompt": "Red",
    "Image": "",
    "Price": 10.0,
    "Cost": 25.0,
    "Weight": 1.0,
    "Default": 1
}
Example Response#
{
    "success": 1
}
Error Responses#
| Error Code | Error Message | Error Description | 
|---|---|---|
| MER-JSN-PRD-00031 | Option not found | Option not found |