POST api/Account/DepartmentRegister

Request Information

URI Parameters

None.

Body Parameters

DepartmentRegisterBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

ProfileName

string

String length: inclusive between 0 and 128

PhoneNumber

string

String length: inclusive between 0 and 50

DepartmentID

integer

None.

PostingPlaceID

integer

None.

Gender

string

String length: inclusive between 0 and 50

Address

string

String length: inclusive between 0 and 1024

DepartmentName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "ProfileName": "sample string 2",
  "PhoneNumber": "sample string 3",
  "DepartmentID": 4,
  "PostingPlaceID": 5,
  "Gender": "sample string 6",
  "Address": "sample string 7",
  "DepartmentName": "sample string 8"
}

application/xml, text/xml

Sample:
<DepartmentRegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 7</Address>
  <DepartmentID>4</DepartmentID>
  <DepartmentName>sample string 8</DepartmentName>
  <Email>sample string 1</Email>
  <Gender>sample string 6</Gender>
  <PhoneNumber>sample string 3</PhoneNumber>
  <PostingPlaceID>5</PostingPlaceID>
  <ProfileName>sample string 2</ProfileName>
</DepartmentRegisterBindingModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.