POST api/employee/update

Update Employee. Required fields: EmployeeCode or EmployeeId, LocationId. You can update EmployeeCode if EmployeeId is not null (in this case employee searching will be by EmployeeId)

Request Information

Allows access to child location using parent company token, in this case use location id parameter

URI Parameters

None.

Body Parameters

Employee info updation

EmployeeInfo
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

Password

string

None.

EmployeeId

integer

None.

EmployeeCode

string

None.

Email

string

None.

CellPhone

string

None.

WorkPhone

string

None.

DateOfBirth

date

None.

PositionId

integer

None.

Address

string

None.

Address2

string

None.

City

string

None.

ZipCode

string

None.

CountryId

integer

None.

StateProvinceId

integer

None.

Balance

decimal number

None.

RewardAmount

decimal number

None.

AccessPermissionId

integer

None.

IsServiceProvider

boolean

None.

CanClockIn

boolean

None.

IsBillingContact

boolean

None.

LocationId

integer

None.

AssignedLocations

Collection of integer

None.

BookingGroups

Collection of integer

None.

ByEmail

creator

string

None.

PayRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Password": "sample string 3",
  "EmployeeId": 1,
  "EmployeeCode": "sample string 4",
  "Email": "sample string 5",
  "CellPhone": "sample string 6",
  "WorkPhone": "sample string 7",
  "DateOfBirth": "2024-10-18T01:23:48.5755147-04:00",
  "PositionId": 1,
  "Address": "sample string 8",
  "Address2": "sample string 9",
  "City": "sample string 10",
  "ZipCode": "sample string 11",
  "CountryId": 1,
  "StateProvinceId": 1,
  "Balance": 1.0,
  "RewardAmount": 1.0,
  "AccessPermissionId": 1,
  "IsServiceProvider": true,
  "CanClockIn": true,
  "IsBillingContact": true,
  "LocationId": 12,
  "AssignedLocations": [
    1,
    2
  ],
  "BookingGroups": [
    1,
    2
  ],
  "ByEmail": "sample string 13",
  "PayRate": 1.0
}

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.