PUT api/employees/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

EmployeeModel
NameDescriptionTypeAdditional information
ID

integer

None.

MembershipId

integer

None.

FacebookId

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

IsDeleted

boolean

None.

Phone

string

None.

StartDate

date

None.

Team

integer

None.

Dashboard

string

None.

Supervisor

integer

None.

BirthDay

integer

None.

BirthMonth

integer

None.

JobTitle

string

None.

CellPhone

string

None.

WorkPhone

string

None.

LastLogin

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "MembershipId": 2,
  "FacebookId": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Email": "sample string 6",
  "IsDeleted": true,
  "Phone": "sample string 8",
  "StartDate": "2021-08-01T03:43:37.1943466+00:00",
  "Team": 1,
  "Dashboard": "sample string 9",
  "Supervisor": 1,
  "BirthDay": 1,
  "BirthMonth": 1,
  "JobTitle": "sample string 10",
  "CellPhone": "sample string 11",
  "WorkPhone": "sample string 12",
  "LastLogin": "2021-08-01T03:43:37.1943466+00:00"
}

text/html

Sample:
{"ID":1,"MembershipId":2,"FacebookId":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","Email":"sample string 6","IsDeleted":true,"Phone":"sample string 8","StartDate":"2021-08-01T03:43:37.1943466+00:00","Team":1,"Dashboard":"sample string 9","Supervisor":1,"BirthDay":1,"BirthMonth":1,"JobTitle":"sample string 10","CellPhone":"sample string 11","WorkPhone":"sample string 12","LastLogin":"2021-08-01T03:43:37.1943466+00:00"}

application/xml, text/xml

Sample:
<EmployeeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <BirthDay>1</BirthDay>
  <BirthMonth>1</BirthMonth>
  <CellPhone>sample string 11</CellPhone>
  <Dashboard>sample string 9</Dashboard>
  <Email>sample string 6</Email>
  <FacebookId>sample string 3</FacebookId>
  <FirstName>sample string 4</FirstName>
  <ID>1</ID>
  <IsDeleted>true</IsDeleted>
  <JobTitle>sample string 10</JobTitle>
  <LastLogin>2021-08-01T03:43:37.1943466+00:00</LastLogin>
  <LastName>sample string 5</LastName>
  <MembershipId>2</MembershipId>
  <Phone>sample string 8</Phone>
  <StartDate>2021-08-01T03:43:37.1943466+00:00</StartDate>
  <Supervisor>1</Supervisor>
  <Team>1</Team>
  <WorkPhone>sample string 12</WorkPhone>
</EmployeeModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.