POST api/v1/save_update_block
Request Information
URI Parameters
None.
Body Parameters
BlockAttributeViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ManufacturerId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| BlockAttributeValueModel | Collection of BlockAttributeValue |
None. |
Request Formats
application/json, text/json
Sample:
{
"ManufacturerId": 1,
"CreatedBy": 1,
"BlockAttributeValueModel": {
"$id": "2",
"$values": [
{
"$id": "3",
"BlockID": 1,
"BlockType": "sample string 2"
},
{
"$ref": "3"
}
]
}
}
text/html
Sample:
{"$id":"1","ManufacturerId":1,"CreatedBy":1,"BlockAttributeValueModel":{"$id":"2","$values":[{"$id":"3","BlockID":1,"BlockType":"sample string 2"},{"$ref":"3"}]}}
application/xml, text/xml
Sample:
<BlockAttributeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels">
<BlockAttributeValueModel>
<BlockAttributeValue>
<BlockID>1</BlockID>
<BlockType>sample string 2</BlockType>
</BlockAttributeValue>
<BlockAttributeValue>
<BlockID>1</BlockID>
<BlockType>sample string 2</BlockType>
</BlockAttributeValue>
</BlockAttributeValueModel>
<CreatedBy>1</CreatedBy>
<ManufacturerId>1</ManufacturerId>
</BlockAttributeViewModel>
multipart/form-data
Sample:
<BlockAttributeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BellaArmorAPI.Models.ViewModels"><BlockAttributeValueModel><BlockAttributeValue><BlockID>1</BlockID><BlockType>sample string 2</BlockType></BlockAttributeValue><BlockAttributeValue><BlockID>1</BlockID><BlockType>sample string 2</BlockType></BlockAttributeValue></BlockAttributeValueModel><CreatedBy>1</CreatedBy><ManufacturerId>1</ManufacturerId></BlockAttributeViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |