PUT api/me/employees/{employeeId}

This method will update employee record

Requires Authorization!

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeId

Employee record id

integer

Required

Body Parameters

Instance of

UpdateEmployeeBindingModel
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

Phone

string

None.

ExternalClientLimit

integer

None.

StartDate

date

None.

EndDate

date

None.

RoleId

integer

None.

Notes

string

None.

CountyId

integer

None.

IsShareableResource

boolean

None.

IsDefault

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "phone": "sample string 3",
  "externalClientLimit": 1,
  "startDate": "2025-05-20T17:11:19.0161715-05:00",
  "endDate": "2025-05-20T17:11:19.0182032-05:00",
  "roleId": 5,
  "notes": "sample string 6",
  "countyId": 7,
  "isShareableResource": true,
  "isDefault": true
}

text/html

Sample:
{"firstName":"sample string 1","lastName":"sample string 2","phone":"sample string 3","externalClientLimit":1,"startDate":"2025-05-20T17:11:19.0161715-05:00","endDate":"2025-05-20T17:11:19.0182032-05:00","roleId":5,"notes":"sample string 6","countyId":7,"isShareableResource":true,"isDefault":true}

application/xml, text/xml

Sample:
<UpdateEmployeeBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.EmploymentBinding">
  <CountyId>7</CountyId>
  <EndDate>2025-05-20T17:11:19.0182032-05:00</EndDate>
  <ExternalClientLimit>1</ExternalClientLimit>
  <FirstName>sample string 1</FirstName>
  <IsDefault>true</IsDefault>
  <IsShareableResource>true</IsShareableResource>
  <LastName>sample string 2</LastName>
  <Notes>sample string 6</Notes>
  <Phone>sample string 3</Phone>
  <RoleId>5</RoleId>
  <StartDate>2025-05-20T17:11:19.0161715-05:00</StartDate>
</UpdateEmployeeBindingModel>

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

Response Information

Resource Description

Instance of Instance of updated employee object

EmployeeResponseModel
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

Phone

string

None.

RoleId

integer

None.

Role

string

None.

AttorneyUserId

integer

None.

EmployeeUserId

integer

None.

ExternalClientLimit

integer

None.

IsShareableResource

boolean

None.

IsDefault

boolean

None.

Notes

string

None.

StartDate

date

None.

EndDate

date

None.

SharedWithAttorneyIds

Collection of integer

None.

CountyId

integer

None.

County

string

None.

AppealAssignmentCount

integer

None.

CreatedDate

date

None.

Avatar

string

None.

IsExternalResource

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "email": "sample string 4",
  "phone": "sample string 5",
  "roleId": 6,
  "role": "sample string 7",
  "attorneyUserId": 8,
  "employeeUserId": 9,
  "externalClientLimit": 10,
  "isShareableResource": true,
  "isDefault": true,
  "notes": "sample string 13",
  "startDate": "2025-05-20T17:11:19.0387241-05:00",
  "endDate": "2025-05-20T17:11:19.0387241-05:00",
  "sharedWithAttorneyIds": [
    1,
    2
  ],
  "countyId": 15,
  "county": "sample string 16",
  "appealAssignmentCount": 17,
  "createdDate": "2025-05-20T17:11:19.0387241-05:00",
  "avatar": "sample string 19",
  "isExternalResource": true
}

text/html

Sample:
{"id":1,"firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","phone":"sample string 5","roleId":6,"role":"sample string 7","attorneyUserId":8,"employeeUserId":9,"externalClientLimit":10,"isShareableResource":true,"isDefault":true,"notes":"sample string 13","startDate":"2025-05-20T17:11:19.0387241-05:00","endDate":"2025-05-20T17:11:19.0387241-05:00","sharedWithAttorneyIds":[1,2],"countyId":15,"county":"sample string 16","appealAssignmentCount":17,"createdDate":"2025-05-20T17:11:19.0387241-05:00","avatar":"sample string 19","isExternalResource":true}

application/xml, text/xml

Sample:
<EmployeeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.EmploymentBinding">
  <AppealAssignmentCount>17</AppealAssignmentCount>
  <AttorneyUserId>8</AttorneyUserId>
  <Avatar>sample string 19</Avatar>
  <County>sample string 16</County>
  <CountyId>15</CountyId>
  <CreatedDate>2025-05-20T17:11:19.0387241-05:00</CreatedDate>
  <Email>sample string 4</Email>
  <EmployeeUserId>9</EmployeeUserId>
  <EndDate>2025-05-20T17:11:19.0387241-05:00</EndDate>
  <ExternalClientLimit>10</ExternalClientLimit>
  <FirstName>sample string 2</FirstName>
  <Id>1</Id>
  <IsDefault>true</IsDefault>
  <IsExternalResource>true</IsExternalResource>
  <IsShareableResource>true</IsShareableResource>
  <LastName>sample string 3</LastName>
  <Notes>sample string 13</Notes>
  <Phone>sample string 5</Phone>
  <Role>sample string 7</Role>
  <RoleId>6</RoleId>
  <SharedWithAttorneyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SharedWithAttorneyIds>
  <StartDate>2025-05-20T17:11:19.0387241-05:00</StartDate>
</EmployeeResponseModel>