POST api/Configuration/Staff

Request Information

URI Parameters

None.

Body Parameters

StaffViewModel
NameDescriptionTypeAdditional information
id

integer

None.

SequenceNumber

integer

None.

Name

string

Required

Max length: 100

Min length: 5

Designation

string

Required

Max length: 200

Min length: 5

JoiningDate

date

Required

Qualification

string

None.

Photograph

string

None.

StaffTypeId

integer

Required

SchoolId

integer

None.

DateOfBirth

date

None.

Email

string

None.

Gender

string

None.

Religion

string

None.

Mobile

string

None.

Address

string

None.

Landline

string

None.

PinCode

string

None.

Department

string

None.

AdharCard

string

None.

PANNumber

string

None.

HusbandName

string

None.

HusbandEmail

string

None.

HusbandMobile

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "SequenceNumber": 2,
  "Name": "sample string 3",
  "Designation": "sample string 4",
  "JoiningDate": "2020-10-30T02:55:22.7765455-04:00",
  "Qualification": "sample string 6",
  "Photograph": "sample string 7",
  "StaffTypeId": 8,
  "SchoolId": 9,
  "DateOfBirth": "2020-10-30T02:55:22.7774352-04:00",
  "Email": "sample string 11",
  "Gender": "sample string 12",
  "Religion": "sample string 13",
  "Mobile": "sample string 14",
  "Address": "sample string 15",
  "Landline": "sample string 16",
  "PinCode": "sample string 17",
  "Department": "sample string 18",
  "AdharCard": "sample string 19",
  "PANNumber": "sample string 20",
  "HusbandName": "sample string 21",
  "HusbandEmail": "sample string 22",
  "HusbandMobile": "sample string 23"
}

application/xml, text/xml

Sample:
<StaffViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.SchoolDetails">
  <Address>sample string 15</Address>
  <AdharCard>sample string 19</AdharCard>
  <DateOfBirth>2020-10-30T02:55:22.7774352-04:00</DateOfBirth>
  <Department>sample string 18</Department>
  <Designation>sample string 4</Designation>
  <Email>sample string 11</Email>
  <Gender>sample string 12</Gender>
  <HusbandEmail>sample string 22</HusbandEmail>
  <HusbandMobile>sample string 23</HusbandMobile>
  <HusbandName>sample string 21</HusbandName>
  <JoiningDate>2020-10-30T02:55:22.7765455-04:00</JoiningDate>
  <Landline>sample string 16</Landline>
  <Mobile>sample string 14</Mobile>
  <Name>sample string 3</Name>
  <PANNumber>sample string 20</PANNumber>
  <Photograph>sample string 7</Photograph>
  <PinCode>sample string 17</PinCode>
  <Qualification>sample string 6</Qualification>
  <Religion>sample string 13</Religion>
  <SchoolId>9</SchoolId>
  <SequenceNumber>2</SequenceNumber>
  <StaffTypeId>8</StaffTypeId>
  <id>1</id>
</StaffViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.