PUT v1/ProductOptions
Update a list of ProductOptions
Request Information
URI Parameters
None.
Body Parameters
Collection of UpdateProductOptionsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
Id |
Product Option Id |
integer |
Required |
Status |
ProductOptionStatus |
None. |
|
ProductOptionCode |
ProductOptionCode |
string |
String length: inclusive between 1 and 20 |
ProductOptionBarcode |
string |
String length: inclusive between 1 and 20 |
|
SupplierCode |
string |
String length: inclusive between 1 and 20 |
|
Option1 |
string |
Max length: 50 |
|
Option2 |
string |
Max length: 50 |
|
Option3 |
string |
Max length: 50 |
|
SpecialPrice |
The special price |
decimal number |
None. |
SpecialsStartDate |
Start date for the speical price to apply |
date |
None. |
SpecialDays |
How many days the special will run starting from the SpecialsStartDate |
integer |
None. |
OptionWeight |
The option weight |
decimal number |
None. |
UomOptions |
An array of unit of measures. |
Collection of UomRequest |
Max length: 20 |
PriceColumns |
Dictionary of string [key] and decimal number [value] |
None. |
|
Sizes |
Product option sizes. A size range id needs to be assigned to the product before creating sizes. |
Collection of SizeRequest |
Max length: 20 |
Request Formats
application/json, text/json
[
{
"id": 1,
"status": "Disabled",
"productOptionCode": "sample string 1",
"productOptionBarcode": "sample string 2",
"supplierCode": "sample string 3",
"option1": "sample string 4",
"option2": "sample string 5",
"option3": "sample string 6",
"specialPrice": 1.0,
"specialsStartDate": "2025-11-26T16:10:09.2426979+13:00",
"specialDays": 1,
"optionWeight": 1.0,
"uomOptions": [
{
"id": 1,
"code": "sample string 1",
"option1": "sample string 2",
"option2": "sample string 3",
"option3": "sample string 4",
"quantity": 1.0,
"barcode": "sample string 5",
"supplierCode": "sample string 6",
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
}
},
{
"id": 1,
"code": "sample string 1",
"option1": "sample string 2",
"option2": "sample string 3",
"option3": "sample string 4",
"quantity": 1.0,
"barcode": "sample string 5",
"supplierCode": "sample string 6",
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
}
}
],
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
},
"sizes": [
{
"sizeId": 1,
"size": "sample string 1",
"sizeCode": "sample string 2",
"sizeBarcode": "sample string 3"
},
{
"sizeId": 1,
"size": "sample string 1",
"sizeCode": "sample string 2",
"sizeBarcode": "sample string 3"
}
]
},
{
"id": 1,
"status": "Disabled",
"productOptionCode": "sample string 1",
"productOptionBarcode": "sample string 2",
"supplierCode": "sample string 3",
"option1": "sample string 4",
"option2": "sample string 5",
"option3": "sample string 6",
"specialPrice": 1.0,
"specialsStartDate": "2025-11-26T16:10:09.2426979+13:00",
"specialDays": 1,
"optionWeight": 1.0,
"uomOptions": [
{
"id": 1,
"code": "sample string 1",
"option1": "sample string 2",
"option2": "sample string 3",
"option3": "sample string 4",
"quantity": 1.0,
"barcode": "sample string 5",
"supplierCode": "sample string 6",
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
}
},
{
"id": 1,
"code": "sample string 1",
"option1": "sample string 2",
"option2": "sample string 3",
"option3": "sample string 4",
"quantity": 1.0,
"barcode": "sample string 5",
"supplierCode": "sample string 6",
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
}
}
],
"priceColumns": {
"sample string 1": 1.0,
"sample string 2": 1.0
},
"sizes": [
{
"sizeId": 1,
"size": "sample string 1",
"sizeCode": "sample string 2",
"sizeBarcode": "sample string 3"
},
{
"sizeId": 1,
"size": "sample string 1",
"sizeCode": "sample string 2",
"sizeBarcode": "sample string 3"
}
]
}
]
Response Information
Resource Description
Collection of BatchResultItem| Name | Description | Type | Additional information |
|---|---|---|---|
Index |
The index at which the record was positioned in an insert or update. |
integer |
None. |
Success |
True if the record was successfully inserted or updated. |
boolean |
None. |
Id |
The record Id. |
integer |
None. |
Code |
The record code. |
string |
None. |
Errors |
A list of errors if the insert or update fails. |
Collection of string |
None. |
Response Formats
application/json, text/json
[
{
"index": 0,
"success": true,
"id": 1,
"code": "SALE4-28",
"errors": []
},
{
"index": 1,
"success": true,
"id": 2,
"code": "SALE5-29",
"errors": []
}
]
