PUT api/organization/employees/{employeeId}

Updates an employee.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeId

Existing employee ID.

integer

Required

Body Parameters

UpdateEmployeeDTO
NameDescriptionTypeAdditional information
Name

Name

string

None.

Phone

Phone number

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Phone": "sample string 2"
}

text/html

Sample:
{"Name":"sample string 1","Phone":"sample string 2"}

application/xml, text/xml

Sample:
<UpdateEmployeeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <Name>sample string 1</Name>
  <Phone>sample string 2</Phone>
</UpdateEmployeeDTO>

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

Response Information

Resource Description

None.