POST api/Specs/Size/SizeGroup/AddMemberSingleSizeGroup

Request Information

URI Parameters

None.

Body Parameters

StoneFactoryAPI.Models.SpecsModel+SingleSizeGroup
NameDescriptionTypeAdditional information
groupName

string

None.

userId

integer

None.

noOfSizes

integer

None.

addedBy

string

None.

sizes

Collection of StoneFactoryAPI.Models.SpecsModel+SingleSize

None.

Request Formats

application/json, text/json

Sample:
{
  "groupName": "sample string 1",
  "userId": 2,
  "noOfSizes": 3,
  "addedBy": "sample string 4",
  "sizes": [
    {
      "displayName": "sample string 1",
      "id": 2,
      "length": 3,
      "length_in_px": 4,
      "unit": "sample string 5",
      "user_id": 6,
      "width": 7,
      "width_in_px": 8
    },
    {
      "displayName": "sample string 1",
      "id": 2,
      "length": 3,
      "length_in_px": 4,
      "unit": "sample string 5",
      "user_id": 6,
      "width": 7,
      "width_in_px": 8
    }
  ]
}

application/xml, text/xml

Sample:
<SpecsModel.SingleSizeGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models">
  <addedBy>sample string 4</addedBy>
  <groupName>sample string 1</groupName>
  <noOfSizes>3</noOfSizes>
  <sizes>
    <SpecsModel.SingleSize>
      <displayName>sample string 1</displayName>
      <id>2</id>
      <length>3</length>
      <length_in_px>4</length_in_px>
      <unit>sample string 5</unit>
      <user_id>6</user_id>
      <width>7</width>
      <width_in_px>8</width_in_px>
    </SpecsModel.SingleSize>
    <SpecsModel.SingleSize>
      <displayName>sample string 1</displayName>
      <id>2</id>
      <length>3</length>
      <length_in_px>4</length_in_px>
      <unit>sample string 5</unit>
      <user_id>6</user_id>
      <width>7</width>
      <width_in_px>8</width_in_px>
    </SpecsModel.SingleSize>
  </sizes>
  <userId>2</userId>
</SpecsModel.SingleSizeGroup>

multipart/form-data

Sample:
<SpecsModel.SingleSizeGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><addedBy>sample string 4</addedBy><groupName>sample string 1</groupName><noOfSizes>3</noOfSizes><sizes><SpecsModel.SingleSize><displayName>sample string 1</displayName><id>2</id><length>3</length><length_in_px>4</length_in_px><unit>sample string 5</unit><user_id>6</user_id><width>7</width><width_in_px>8</width_in_px></SpecsModel.SingleSize><SpecsModel.SingleSize><displayName>sample string 1</displayName><id>2</id><length>3</length><length_in_px>4</length_in_px><unit>sample string 5</unit><user_id>6</user_id><width>7</width><width_in_px>8</width_in_px></SpecsModel.SingleSize></sizes><userId>2</userId></SpecsModel.SingleSizeGroup>

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 'SingleSizeGroup'.

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.