PUT 3dCartWebAPI/v1/Categories/{categoryid}/Options/{optionsetid}


Updates specific options from a specific Category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
categoryid

CategoryID

integer

Required

optionsetid

OptionSetID

integer

Required

Body Parameters

A Json or XML object containing the new options

OptionSet
NameDescriptionTypeAdditional information
OptionSetID

Primary key, auto-incremented. database reference = prodfeatures.id

integer

None.

OptionSetName

database reference = prodfeatures.featurecaption

string

String length: inclusive between 0 and 255

OptionSorting

database reference = prodfeatures.sorting

decimal number

None.

OptionRequired

database reference = prodfeatures.featurerequired

boolean

None.

OptionType

database reference = prodfeatures.featuretype

string

String length: inclusive between 0 and 10

OptionURL

database reference = prodfeatures.url

string

String length: inclusive between 0 and 65535

OptionAdditionalInformation

database reference = prodfeatures.info

string

String length: inclusive between 0 and 65535

OptionSizeLimit

database reference = prodfeatures.textlimit

integer

None.

OptionList

Collection of Options

None.

Request Formats

application/json, text/json

Sample:
{
  "OptionSetID": 1,
  "OptionSetName": "sample string 1",
  "OptionSorting": 1.1,
  "OptionRequired": true,
  "OptionType": "sample string 2",
  "OptionURL": "sample string 3",
  "OptionAdditionalInformation": "sample string 4",
  "OptionSizeLimit": 1,
  "OptionList": [
    {
      "OptionID": 1,
      "OptionName": "sample string 1",
      "OptionSelected": true,
      "OptionHide": true,
      "OptionValue": 1.1,
      "OptionPartNumber": "sample string 2",
      "OptionSorting": 1.1,
      "OptionImagePath": "sample string 3",
      "OptionBundleCatalogId": 1,
      "OptionBundleQuantity": 1
    },
    {
      "OptionID": 1,
      "OptionName": "sample string 1",
      "OptionSelected": true,
      "OptionHide": true,
      "OptionValue": 1.1,
      "OptionPartNumber": "sample string 2",
      "OptionSorting": 1.1,
      "OptionImagePath": "sample string 3",
      "OptionBundleCatalogId": 1,
      "OptionBundleQuantity": 1
    }
  ]
}

application/xml, text/xml

Sample:
<OptionSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <OptionAdditionalInformation>sample string 4</OptionAdditionalInformation>
  <OptionList xmlns:d2p1="http://schemas.datacontract.org/2004/07/_3dCartWebAPI.Models">
    <d2p1:Options>
      <d2p1:OptionBundleCatalogId>1</d2p1:OptionBundleCatalogId>
      <d2p1:OptionBundleQuantity>1</d2p1:OptionBundleQuantity>
      <d2p1:OptionHide>true</d2p1:OptionHide>
      <d2p1:OptionID>1</d2p1:OptionID>
      <d2p1:OptionImagePath>sample string 3</d2p1:OptionImagePath>
      <d2p1:OptionName>sample string 1</d2p1:OptionName>
      <d2p1:OptionPartNumber>sample string 2</d2p1:OptionPartNumber>
      <d2p1:OptionSelected>true</d2p1:OptionSelected>
      <d2p1:OptionSorting>1.1</d2p1:OptionSorting>
      <d2p1:OptionValue>1.1</d2p1:OptionValue>
    </d2p1:Options>
    <d2p1:Options>
      <d2p1:OptionBundleCatalogId>1</d2p1:OptionBundleCatalogId>
      <d2p1:OptionBundleQuantity>1</d2p1:OptionBundleQuantity>
      <d2p1:OptionHide>true</d2p1:OptionHide>
      <d2p1:OptionID>1</d2p1:OptionID>
      <d2p1:OptionImagePath>sample string 3</d2p1:OptionImagePath>
      <d2p1:OptionName>sample string 1</d2p1:OptionName>
      <d2p1:OptionPartNumber>sample string 2</d2p1:OptionPartNumber>
      <d2p1:OptionSelected>true</d2p1:OptionSelected>
      <d2p1:OptionSorting>1.1</d2p1:OptionSorting>
      <d2p1:OptionValue>1.1</d2p1:OptionValue>
    </d2p1:Options>
  </OptionList>
  <OptionRequired>true</OptionRequired>
  <OptionSetID>1</OptionSetID>
  <OptionSetName>sample string 1</OptionSetName>
  <OptionSizeLimit>1</OptionSizeLimit>
  <OptionSorting>1.1</OptionSorting>
  <OptionType>sample string 2</OptionType>
  <OptionURL>sample string 3</OptionURL>
</OptionSet>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"OptionSetID",
    "Value":"1234",
    "Status":"200",
    "Message":"updated successfully",
  }
]
							

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.