POST api/me/employees

This method will add a new employee record

Requires Authorization!

Request Information

URI Parameters

None.

Body Parameters

Instance of New employee data

CreateEmployeeBindingModel
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

Email

string

None.

Phone

string

None.

RoleId

integer

None.

ExternalEmployeeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "email": "sample string 3",
  "phone": "sample string 4",
  "roleId": 1,
  "externalEmployeeId": 1
}

text/html

Sample:
{"firstName":"sample string 1","lastName":"sample string 2","email":"sample string 3","phone":"sample string 4","roleId":1,"externalEmployeeId":1}

application/xml, text/xml

Sample:
<CreateEmployeeBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.EmploymentBinding">
  <Email>sample string 3</Email>
  <ExternalEmployeeId>1</ExternalEmployeeId>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <Phone>sample string 4</Phone>
  <RoleId>1</RoleId>
</CreateEmployeeBindingModel>

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

Response Information

Resource Description

Collection of List of all employees

Collection of 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:00:51.2583147-05:00",
    "endDate": "2025-05-20T17:00:51.2583147-05:00",
    "sharedWithAttorneyIds": [
      1,
      2
    ],
    "countyId": 15,
    "county": "sample string 16",
    "appealAssignmentCount": 17,
    "createdDate": "2025-05-20T17:00:51.2583147-05:00",
    "avatar": "sample string 19",
    "isExternalResource": true
  },
  {
    "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:00:51.2583147-05:00",
    "endDate": "2025-05-20T17:00:51.2583147-05:00",
    "sharedWithAttorneyIds": [
      1,
      2
    ],
    "countyId": 15,
    "county": "sample string 16",
    "appealAssignmentCount": 17,
    "createdDate": "2025-05-20T17:00:51.2583147-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:00:51.2583147-05:00","endDate":"2025-05-20T17:00:51.2583147-05:00","sharedWithAttorneyIds":[1,2],"countyId":15,"county":"sample string 16","appealAssignmentCount":17,"createdDate":"2025-05-20T17:00:51.2583147-05:00","avatar":"sample string 19","isExternalResource":true},{"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:00:51.2583147-05:00","endDate":"2025-05-20T17:00:51.2583147-05:00","sharedWithAttorneyIds":[1,2],"countyId":15,"county":"sample string 16","appealAssignmentCount":17,"createdDate":"2025-05-20T17:00:51.2583147-05:00","avatar":"sample string 19","isExternalResource":true}]

application/xml, text/xml

Sample:
<ArrayOfEmployeeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.EmploymentBinding">
  <EmployeeResponseModel>
    <AppealAssignmentCount>17</AppealAssignmentCount>
    <AttorneyUserId>8</AttorneyUserId>
    <Avatar>sample string 19</Avatar>
    <County>sample string 16</County>
    <CountyId>15</CountyId>
    <CreatedDate>2025-05-20T17:00:51.2583147-05:00</CreatedDate>
    <Email>sample string 4</Email>
    <EmployeeUserId>9</EmployeeUserId>
    <EndDate>2025-05-20T17:00:51.2583147-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:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SharedWithAttorneyIds>
    <StartDate>2025-05-20T17:00:51.2583147-05:00</StartDate>
  </EmployeeResponseModel>
  <EmployeeResponseModel>
    <AppealAssignmentCount>17</AppealAssignmentCount>
    <AttorneyUserId>8</AttorneyUserId>
    <Avatar>sample string 19</Avatar>
    <County>sample string 16</County>
    <CountyId>15</CountyId>
    <CreatedDate>2025-05-20T17:00:51.2583147-05:00</CreatedDate>
    <Email>sample string 4</Email>
    <EmployeeUserId>9</EmployeeUserId>
    <EndDate>2025-05-20T17:00:51.2583147-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:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SharedWithAttorneyIds>
    <StartDate>2025-05-20T17:00:51.2583147-05:00</StartDate>
  </EmployeeResponseModel>
</ArrayOfEmployeeResponseModel>