POST api/SKU/saveSizes

Request Information

URI Parameters

None.

Body Parameters

StoneFactoryAPI.Models.SKUModel+saveSize
NameDescriptionTypeAdditional information
subCategoryId

integer

None.

skuId

integer

None.

patternId

integer

None.

patternSize

string

None.

userId

integer

None.

patternSizes

Collection of StoneFactoryAPI.Models.SKUModel+sizeMix

None.

Request Formats

application/json, text/json

Sample:
{
  "subCategoryId": 1,
  "skuId": 2,
  "patternId": 3,
  "patternSize": "sample string 4",
  "userId": 5,
  "patternSizes": [
    {
      "patternIds": "sample string 1",
      "mixId": 2,
      "subCategoryId": 3,
      "patternId": 4,
      "userId": 5,
      "groupId": 6
    },
    {
      "patternIds": "sample string 1",
      "mixId": 2,
      "subCategoryId": 3,
      "patternId": 4,
      "userId": 5,
      "groupId": 6
    }
  ]
}

application/xml, text/xml

Sample:
<SKUModel.saveSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models">
  <patternId>3</patternId>
  <patternSize>sample string 4</patternSize>
  <patternSizes>
    <SKUModel.sizeMix>
      <groupId>6</groupId>
      <mixId>2</mixId>
      <patternId>4</patternId>
      <subCategoryId>3</subCategoryId>
      <userId>5</userId>
      <patternIds>sample string 1</patternIds>
    </SKUModel.sizeMix>
    <SKUModel.sizeMix>
      <groupId>6</groupId>
      <mixId>2</mixId>
      <patternId>4</patternId>
      <subCategoryId>3</subCategoryId>
      <userId>5</userId>
      <patternIds>sample string 1</patternIds>
    </SKUModel.sizeMix>
  </patternSizes>
  <skuId>2</skuId>
  <subCategoryId>1</subCategoryId>
  <userId>5</userId>
</SKUModel.saveSize>

multipart/form-data

Sample:
<SKUModel.saveSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><patternId>3</patternId><patternSize>sample string 4</patternSize><patternSizes><SKUModel.sizeMix><groupId>6</groupId><mixId>2</mixId><patternId>4</patternId><subCategoryId>3</subCategoryId><userId>5</userId><patternIds>sample string 1</patternIds></SKUModel.sizeMix><SKUModel.sizeMix><groupId>6</groupId><mixId>2</mixId><patternId>4</patternId><subCategoryId>3</subCategoryId><userId>5</userId><patternIds>sample string 1</patternIds></SKUModel.sizeMix></patternSizes><skuId>2</skuId><subCategoryId>1</subCategoryId><userId>5</userId></SKUModel.saveSize>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'saveSize'.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.