POST api/Department

Request Information

URI Parameters

None.

Body Parameters

utblMstDepartment
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

DepartmentName

string

None.

DepartmentAddress

string

None.

EmergencyContactNo

string

None.

DepartmentEmailID

string

None.

DepartmentWebsite

string

None.

DepartmentLogo

string

None.

ReceiveAlert

boolean

None.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentID": 1,
  "DepartmentName": "sample string 2",
  "DepartmentAddress": "sample string 3",
  "EmergencyContactNo": "sample string 4",
  "DepartmentEmailID": "sample string 5",
  "DepartmentWebsite": "sample string 6",
  "DepartmentLogo": "sample string 7",
  "ReceiveAlert": true,
  "UserName": "sample string 9"
}

application/xml, text/xml

Sample:
<utblMstDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <DepartmentAddress>sample string 3</DepartmentAddress>
  <DepartmentEmailID>sample string 5</DepartmentEmailID>
  <DepartmentID>1</DepartmentID>
  <DepartmentLogo>sample string 7</DepartmentLogo>
  <DepartmentName>sample string 2</DepartmentName>
  <DepartmentWebsite>sample string 6</DepartmentWebsite>
  <EmergencyContactNo>sample string 4</EmergencyContactNo>
  <ReceiveAlert>true</ReceiveAlert>
  <UserName>sample string 9</UserName>
</utblMstDepartment>

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

Response Information

Resource Description

utblMstDepartment
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

DepartmentName

string

None.

DepartmentAddress

string

None.

EmergencyContactNo

string

None.

DepartmentEmailID

string

None.

DepartmentWebsite

string

None.

DepartmentLogo

string

None.

ReceiveAlert

boolean

None.

UserName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DepartmentID": 1,
  "DepartmentName": "sample string 2",
  "DepartmentAddress": "sample string 3",
  "EmergencyContactNo": "sample string 4",
  "DepartmentEmailID": "sample string 5",
  "DepartmentWebsite": "sample string 6",
  "DepartmentLogo": "sample string 7",
  "ReceiveAlert": true,
  "UserName": "sample string 9"
}

application/xml, text/xml

Sample:
<utblMstDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <DepartmentAddress>sample string 3</DepartmentAddress>
  <DepartmentEmailID>sample string 5</DepartmentEmailID>
  <DepartmentID>1</DepartmentID>
  <DepartmentLogo>sample string 7</DepartmentLogo>
  <DepartmentName>sample string 2</DepartmentName>
  <DepartmentWebsite>sample string 6</DepartmentWebsite>
  <EmergencyContactNo>sample string 4</EmergencyContactNo>
  <ReceiveAlert>true</ReceiveAlert>
  <UserName>sample string 9</UserName>
</utblMstDepartment>