POST api/Payroll/InsertDepartment?isOpen={isOpen}&userId={userId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| userId | integer |
Required |
Body Parameters
DepartmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentID | integer |
None. |
|
| DepartmentTitle | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DepartmentID": 1,
"DepartmentTitle": "sample string 2"
}
application/xml, text/xml
Sample:
<DepartmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Payroll"> <DepartmentID>1</DepartmentID> <DepartmentTitle>sample string 2</DepartmentTitle> </DepartmentModel>
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. |