POST api/department/insert
Request Information
URI Parameters
None.
Body Parameters
DepartmentClass| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| DEPARTMENT | string |
None. |
|
| IS_INACTIVE | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"DEPARTMENT": "sample string 2",
"IS_INACTIVE": true
}
application/xml, text/xml
Sample:
<DepartmentClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VEZTA.Models"> <DEPARTMENT>sample string 2</DEPARTMENT> <ID>1</ID> <IS_INACTIVE>true</IS_INACTIVE> </DepartmentClass>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DepartmentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| flag | integer |
None. |
|
| Message | string |
None. |
|
| Data | Collection of DepartmentClass |
None. |
Response Formats
application/json, text/json
Sample:
{
"flag": 1,
"Message": "sample string 2",
"Data": [
{
"ID": 1,
"DEPARTMENT": "sample string 2",
"IS_INACTIVE": true
},
{
"ID": 1,
"DEPARTMENT": "sample string 2",
"IS_INACTIVE": true
}
]
}
application/xml, text/xml
Sample:
<DepartmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VEZTA.Models">
<Data>
<DepartmentClass>
<DEPARTMENT>sample string 2</DEPARTMENT>
<ID>1</ID>
<IS_INACTIVE>true</IS_INACTIVE>
</DepartmentClass>
<DepartmentClass>
<DEPARTMENT>sample string 2</DEPARTMENT>
<ID>1</ID>
<IS_INACTIVE>true</IS_INACTIVE>
</DepartmentClass>
</Data>
<Message>sample string 2</Message>
<flag>1</flag>
</DepartmentResponse>