POST api/v1/save_update_length

Request Information

URI Parameters

None.

Body Parameters

LengthAttributeViewModel
NameDescriptionTypeAdditional information
SizeId

integer

None.

ManufacturerId

integer

None.

CreatedBy

integer

None.

LengthAttributeValueModel

Collection of LengthAttributeValue

None.

Request Formats

application/json, text/json

Sample:
{
  "SizeId": 1,
  "ManufacturerId": 2,
  "CreatedBy": 1,
  "LengthAttributeValueModel": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "LengthId": 1,
        "Length": 1.1,
        "UnitCost": 1.1,
        "THKStandardCost": 1.1
      },
      {
        "$ref": "3"
      }
    ]
  }
}

text/html

Sample:
{"$id":"1","SizeId":1,"ManufacturerId":2,"CreatedBy":1,"LengthAttributeValueModel":{"$id":"2","$values":[{"$id":"3","LengthId":1,"Length":1.1,"UnitCost":1.1,"THKStandardCost":1.1},{"$ref":"3"}]}}

application/xml, text/xml

Sample:
<LengthAttributeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels">
  <CreatedBy>1</CreatedBy>
  <LengthAttributeValueModel>
    <LengthAttributeValue>
      <Length>1.1</Length>
      <LengthId>1</LengthId>
      <THKStandardCost>1.1</THKStandardCost>
      <UnitCost>1.1</UnitCost>
    </LengthAttributeValue>
    <LengthAttributeValue>
      <Length>1.1</Length>
      <LengthId>1</LengthId>
      <THKStandardCost>1.1</THKStandardCost>
      <UnitCost>1.1</UnitCost>
    </LengthAttributeValue>
  </LengthAttributeValueModel>
  <ManufacturerId>2</ManufacturerId>
  <SizeId>1</SizeId>
</LengthAttributeViewModel>

multipart/form-data

Sample:
<LengthAttributeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels"><CreatedBy>1</CreatedBy><LengthAttributeValueModel><LengthAttributeValue><Length>1.1</Length><LengthId>1</LengthId><THKStandardCost>1.1</THKStandardCost><UnitCost>1.1</UnitCost></LengthAttributeValue><LengthAttributeValue><Length>1.1</Length><LengthId>1</LengthId><THKStandardCost>1.1</THKStandardCost><UnitCost>1.1</UnitCost></LengthAttributeValue></LengthAttributeValueModel><ManufacturerId>2</ManufacturerId><SizeId>1</SizeId></LengthAttributeViewModel>

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

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.