POST api/Management/SaveDepartments
Request Information
URI Parameters
None.
Body Parameters
Collection of DepartmentView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| DeparmentReferenceId | integer |
None. |
|
| ReferenceName | string |
None. |
|
| Type | integer |
None. |
|
| Order | integer |
None. |
|
| TaxType | integer |
None. |
|
| ProfitMargin | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"DeparmentReferenceId": 3,
"ReferenceName": "sample string 4",
"Type": 5,
"Order": 6,
"TaxType": 7,
"ProfitMargin": 8.0
},
{
"Id": 1,
"Name": "sample string 2",
"DeparmentReferenceId": 3,
"ReferenceName": "sample string 4",
"Type": 5,
"Order": 6,
"TaxType": 7,
"ProfitMargin": 8.0
}
]
application/xml, text/xml
Sample:
<ArrayOfDepartmentView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PosEntity.ViewModel">
<DepartmentView>
<DeparmentReferenceId>3</DeparmentReferenceId>
<Id>1</Id>
<Name>sample string 2</Name>
<Order>6</Order>
<ProfitMargin>8</ProfitMargin>
<ReferenceName>sample string 4</ReferenceName>
<TaxType>7</TaxType>
<Type>5</Type>
</DepartmentView>
<DepartmentView>
<DeparmentReferenceId>3</DeparmentReferenceId>
<Id>1</Id>
<Name>sample string 2</Name>
<Order>6</Order>
<ProfitMargin>8</ProfitMargin>
<ReferenceName>sample string 4</ReferenceName>
<TaxType>7</TaxType>
<Type>5</Type>
</DepartmentView>
</ArrayOfDepartmentView>
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. |