POST api/UnitDepartment/Insert

单位添加部门

Request Information

URI Parameters

None.

Body Parameters

InsertInput7
NameDescriptionTypeAdditional information
UnitID

单位编号

globally unique identifier

None.

ParentID

上级编号[顶级Guid.Empty 00000000-0000-0000-0000-000000000000]

globally unique identifier

None.

DepartmentName

名称[最多20个汉字]

string

None.

IndexOrder

部门排序

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UnitID": "0d1395af-0b95-488f-9983-875efcd65f4a",
  "ParentID": "dacb6799-344c-43a7-8e79-f3e0406128d2",
  "DepartmentName": "sample string 3",
  "IndexOrder": 4
}

application/xml, text/xml

Sample:
<UnitDepartmentController.InsertInput7 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.API.PortalDepartment">
  <DepartmentName>sample string 3</DepartmentName>
  <IndexOrder>4</IndexOrder>
  <ParentID>dacb6799-344c-43a7-8e79-f3e0406128d2</ParentID>
  <UnitID>0d1395af-0b95-488f-9983-875efcd65f4a</UnitID>
</UnitDepartmentController.InsertInput7>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InsertInput7'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.