POST api/v1/save_update_bellows_mapping

Request Information

URI Parameters

None.

Body Parameters

BellowsMappingViewModel
NameDescriptionTypeAdditional information
ManufacturerId

integer

None.

bellowsMappingAttributes

Collection of BellowsMappingAttributes

None.

Request Formats

application/json, text/json

Sample:
{
  "ManufacturerId": 1,
  "bellowsMappingAttributes": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "Id": 1,
        "NewBellowsId": 1,
        "OldBellowsId": 1
      },
      {
        "$ref": "3"
      }
    ]
  }
}

text/html

Sample:
{"$id":"1","ManufacturerId":1,"bellowsMappingAttributes":{"$id":"2","$values":[{"$id":"3","Id":1,"NewBellowsId":1,"OldBellowsId":1},{"$ref":"3"}]}}

application/xml, text/xml

Sample:
<BellowsMappingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels">
  <ManufacturerId>1</ManufacturerId>
  <bellowsMappingAttributes>
    <BellowsMappingAttributes>
      <Id>1</Id>
      <NewBellowsId>1</NewBellowsId>
      <OldBellowsId>1</OldBellowsId>
    </BellowsMappingAttributes>
    <BellowsMappingAttributes>
      <Id>1</Id>
      <NewBellowsId>1</NewBellowsId>
      <OldBellowsId>1</OldBellowsId>
    </BellowsMappingAttributes>
  </bellowsMappingAttributes>
</BellowsMappingViewModel>

multipart/form-data

Sample:
<BellowsMappingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels"><ManufacturerId>1</ManufacturerId><bellowsMappingAttributes><BellowsMappingAttributes><Id>1</Id><NewBellowsId>1</NewBellowsId><OldBellowsId>1</OldBellowsId></BellowsMappingAttributes><BellowsMappingAttributes><Id>1</Id><NewBellowsId>1</NewBellowsId><OldBellowsId>1</OldBellowsId></BellowsMappingAttributes></bellowsMappingAttributes></BellowsMappingViewModel>

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

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.