POST api/Category?createdby={createdby}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| createdby | string |
Required |
Body Parameters
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| categoryid | string |
None. |
|
| categpryname | string |
None. |
|
| person_capacity | integer |
None. |
|
| totalarea_sqf | decimal number |
None. |
|
| rent_per_day | decimal number |
None. |
|
| isactive | integer |
None. |
|
| hotelid | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"categoryid": "sample string 1",
"categpryname": "sample string 2",
"person_capacity": 3,
"totalarea_sqf": 4.0,
"rent_per_day": 5.0,
"isactive": 6,
"hotelid": "sample string 7"
}
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models"> <categoryid>sample string 1</categoryid> <categpryname>sample string 2</categpryname> <hotelid>sample string 7</hotelid> <isactive>6</isactive> <person_capacity>3</person_capacity> <rent_per_day>5</rent_per_day> <totalarea_sqf>4</totalarea_sqf> </Category>
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. |