POST api/v1/save_update_sizeblock

Request Information

URI Parameters

None.

Body Parameters

SizeBlockMappingViewModel
NameDescriptionTypeAdditional information
ManufacturerId

integer

None.

SizeId

integer

None.

CreatedBy

integer

None.

SizeBlockMappingValueModel

Collection of SizeBlockMappingValue

None.

Request Formats

application/json, text/json

Sample:
{
  "ManufacturerId": 1,
  "SizeId": 2,
  "CreatedBy": 1,
  "SizeBlockMappingValueModel": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "SizeBlockId": 1,
        "Length": 1.1,
        "IsLogicalDeleted": true,
        "BlockId": 2
      },
      {
        "$ref": "3"
      }
    ]
  }
}

text/html

Sample:
{"$id":"1","ManufacturerId":1,"SizeId":2,"CreatedBy":1,"SizeBlockMappingValueModel":{"$id":"2","$values":[{"$id":"3","SizeBlockId":1,"Length":1.1,"IsLogicalDeleted":true,"BlockId":2},{"$ref":"3"}]}}

application/xml, text/xml

Sample:
<SizeBlockMappingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels">
  <CreatedBy>1</CreatedBy>
  <ManufacturerId>1</ManufacturerId>
  <SizeBlockMappingValueModel>
    <SizeBlockMappingValue>
      <BlockId>2</BlockId>
      <IsLogicalDeleted>true</IsLogicalDeleted>
      <Length>1.1</Length>
      <SizeBlockId>1</SizeBlockId>
    </SizeBlockMappingValue>
    <SizeBlockMappingValue>
      <BlockId>2</BlockId>
      <IsLogicalDeleted>true</IsLogicalDeleted>
      <Length>1.1</Length>
      <SizeBlockId>1</SizeBlockId>
    </SizeBlockMappingValue>
  </SizeBlockMappingValueModel>
  <SizeId>2</SizeId>
</SizeBlockMappingViewModel>

multipart/form-data

Sample:
<SizeBlockMappingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels"><CreatedBy>1</CreatedBy><ManufacturerId>1</ManufacturerId><SizeBlockMappingValueModel><SizeBlockMappingValue><BlockId>2</BlockId><IsLogicalDeleted>true</IsLogicalDeleted><Length>1.1</Length><SizeBlockId>1</SizeBlockId></SizeBlockMappingValue><SizeBlockMappingValue><BlockId>2</BlockId><IsLogicalDeleted>true</IsLogicalDeleted><Length>1.1</Length><SizeBlockId>1</SizeBlockId></SizeBlockMappingValue></SizeBlockMappingValueModel><SizeId>2</SizeId></SizeBlockMappingViewModel>

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

Response Information

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.