POST api/Employee/SaveEmployee

Request Information

URI Parameters

None.

Body Parameters

EmployeeGetData
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

TitleId

string

None.

FirstName

string

None.

LastName

string

None.

Gender

integer

None.

DateOfBirth

date

None.

Email

string

None.

ContactNumber

string

None.

Address

string

None.

City

string

None.

County

string

None.

StateId

integer

None.

PostalCode

string

None.

CountryId

integer

None.

FkSupplierId

integer

None.

RoleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "TitleId": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Gender": 5,
  "DateOfBirth": "2021-10-27T07:32:55.563515+01:00",
  "Email": "sample string 6",
  "ContactNumber": "sample string 7",
  "Address": "sample string 8",
  "City": "sample string 9",
  "County": "sample string 10",
  "StateId": 1,
  "PostalCode": "sample string 11",
  "CountryId": 1,
  "FkSupplierId": 1,
  "RoleId": 12
}

text/html

Sample:
{"EmployeeId":1,"TitleId":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Gender":5,"DateOfBirth":"2021-10-27T07:32:55.563515+01:00","Email":"sample string 6","ContactNumber":"sample string 7","Address":"sample string 8","City":"sample string 9","County":"sample string 10","StateId":1,"PostalCode":"sample string 11","CountryId":1,"FkSupplierId":1,"RoleId":12}

application/xml, text/xml

Sample:
<EmployeeGetData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <Address>sample string 8</Address>
  <City>sample string 9</City>
  <ContactNumber>sample string 7</ContactNumber>
  <CountryId>1</CountryId>
  <County>sample string 10</County>
  <DateOfBirth>2021-10-27T07:32:55.563515+01:00</DateOfBirth>
  <Email>sample string 6</Email>
  <EmployeeId>1</EmployeeId>
  <FirstName>sample string 3</FirstName>
  <FkSupplierId>1</FkSupplierId>
  <Gender>5</Gender>
  <LastName>sample string 4</LastName>
  <PostalCode>sample string 11</PostalCode>
  <RoleId>12</RoleId>
  <StateId>1</StateId>
  <TitleId>sample string 2</TitleId>
</EmployeeGetData>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.