PUT api/v1/ProductOptions

Update a list of ProductOptions

Request Information

URI Parameters

None.

Body Parameters

Name Description Type Additional information

Id

Product Option Id

integer

Required

Status

ProductOptionStatus

None.

ProductOptionCode

ProductOptionCode

string

None.

ProductOptionBarcode

string

None.

SupplierCode

string

None.

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

Collection of KeyValuePairOfStringAndNullableOfDecimal

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

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

Sample:
[
  {
    "index": 1,
    "success": false,
    "id": 1,
    "code": "",
    "errors": [
      ""
    ]
  }
]