POST api/UnitDepartment/Update

单位修改部门

Request Information

URI Parameters

None.

Body Parameters

UpdateInput3
NameDescriptionTypeAdditional information
UnitID

单位编号

globally unique identifier

None.

ID

编号

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": "e496852b-2d08-4d50-a3fe-ece94d14a542",
  "ID": "c1ab3815-3eac-4e02-8659-8c8c0b03b8dc",
  "ParentID": "602ab13f-a671-41ff-81cc-9c20aae9b40c",
  "DepartmentName": "sample string 3",
  "IndexOrder": 1
}

application/xml, text/xml

Sample:
<UnitDepartmentController.UpdateInput3 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>
  <ID>c1ab3815-3eac-4e02-8659-8c8c0b03b8dc</ID>
  <IndexOrder>1</IndexOrder>
  <ParentID>602ab13f-a671-41ff-81cc-9c20aae9b40c</ParentID>
  <UnitID>e496852b-2d08-4d50-a3fe-ece94d14a542</UnitID>
</UnitDepartmentController.UpdateInput3>

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 'UpdateInput3'.

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.