POST API/Info/UpdateDepartment
Request Information
URI Parameters
None.
Body Parameters
Item| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| type | string |
None. |
|
| category | string |
None. |
|
| code | string |
None. |
|
| name | string |
None. |
|
| quantity | integer |
None. |
|
| cause | string |
None. |
|
| NormVehicle | integer |
None. |
|
| NormTruck | integer |
None. |
|
| NumberOfInspectors | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"type": "sample string 1",
"category": "sample string 2",
"code": "sample string 3",
"name": "sample string 4",
"quantity": 1,
"cause": "sample string 5",
"NormVehicle": 1,
"NormTruck": 1,
"NumberOfInspectors": 1
}
application/xml, text/xml
Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Common"> <NormTruck>1</NormTruck> <NormVehicle>1</NormVehicle> <NumberOfInspectors>1</NumberOfInspectors> <category>sample string 2</category> <cause>sample string 5</cause> <code>sample string 3</code> <id>1</id> <name>sample string 4</name> <quantity>1</quantity> <type>sample string 1</type> </Item>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>