POST api/Sheds
Request Information
URI Parameters
None.
Body Parameters
Sheds| Name | Description | Type | Additional information |
|---|---|---|---|
| ShedId | integer |
None. |
|
| BuCode | integer |
None. |
|
| ShedTitle | string |
None. |
|
| ShedShortName | string |
None. |
|
| ShedCapacity | integer |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ShedId": 1,
"BuCode": 2,
"ShedTitle": "sample string 3",
"ShedShortName": "sample string 4",
"ShedCapacity": 1,
"Active": true
}
text/html
Sample:
{"ShedId":1,"BuCode":2,"ShedTitle":"sample string 3","ShedShortName":"sample string 4","ShedCapacity":1,"Active":true}
application/xml, text/xml
Sample:
<Sheds xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveStock.WebApi.Models"> <Active>true</Active> <BuCode>2</BuCode> <ShedCapacity>1</ShedCapacity> <ShedId>1</ShedId> <ShedShortName>sample string 4</ShedShortName> <ShedTitle>sample string 3</ShedTitle> </Sheds>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |