POST api/DepartMent/SaveDepartMent
Request Information
URI Parameters
None.
Body Parameters
DepartMentDataObject| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartId | string |
None. |
|
| DepartCode | string |
None. |
|
| DepartName | string |
None. |
|
| ParentCode | string |
None. |
|
| Remark | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"departId": "sample string 1",
"departCode": "sample string 2",
"departName": "sample string 3",
"parentCode": "sample string 4",
"remark": "sample string 5"
}
application/xml, text/xml
Sample:
<DepartMentDataObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DepartId>sample string 1</DepartId> <DepartCode>sample string 2</DepartCode> <DepartName>sample string 3</DepartName> <ParentCode>sample string 4</ParentCode> <Remark>sample string 5</Remark> </DepartMentDataObject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResultObject| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSucceed | boolean |
None. |
|
| Remark | string |
None. |
|
| OpTime | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSucceed": true,
"remark": "sample string 2",
"opTime": "sample string 3",
"result": {}
}
application/xml, text/xml
Sample:
<JsonResultObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsSucceed>true</IsSucceed> <Remark>sample string 2</Remark> <OpTime>sample string 3</OpTime> <Result /> </JsonResultObject>