Create a spec option

Request

A Spec can have multiple Options-- for example, if the spec is called 'Color', the options might be 'Blue', 'Red', and 'Green'.

Security
OAuth2(Required scopes: FullAccessProductAdmin)
Path
specIDstringrequired

ID of the spec.

Bodyapplication/jsonrequired
Valuestring, <= 2000 charactersrequired
Example:""
IDstring, <= 100 characters
Example:""
ListOrderinteger, (int32)
Example:1
IsOpenTextboolean
Example:false
PriceMarkupTypestring(PriceMarkupType)

Used to change the price of a product when a specific spec option is selected.

Enum:"NoMarkup""AmountPerQuantity""AmountTotal""Percentage"
Example:"NoMarkup"
PriceMarkupnumber, (float)
Example:0
xpobject
Example:
{}
curl -i -X POST \
  'https://api.ordercloud.io/v1/specs/{specID}/options' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "ID": "",
    "Value": "",
    "ListOrder": 1,
    "IsOpenText": false,
    "PriceMarkupType": "NoMarkup",
    "PriceMarkup": 0,
    "xp": {}
  }'

Responses

A Spec can have multiple Options-- for example, if the spec is called 'Color', the options might be 'Blue', 'Red', and 'Green'.

Bodyapplication/json
IDstring, <= 100 characters
Example:""
Valuestring, <= 2000 characters
Example:""
ListOrderinteger, (int32)
Example:1
IsOpenTextboolean
Example:false
PriceMarkupTypestring(PriceMarkupType)

Used to change the price of a product when a specific spec option is selected.

Enum:"NoMarkup""AmountPerQuantity""AmountTotal""Percentage"
Example:"NoMarkup"
PriceMarkupnumber, (float)
Example:0
xpobject
Example:
{}
Response
{ "ID": "", "Value": "", "ListOrder": 1, "IsOpenText": false, "PriceMarkupType": "NoMarkup", "PriceMarkup": 0, "xp": {} }