POST api/employee/importschedules
Import employee schedules. Required fields: EmployeeCode (or EmployeeId), LocationId, StartTime, EndTime
Request Information
Allows multi-location processing, in case of using parent location token restrictByLocations parameter is strongly recommended with comma separated list of locations to select from or update in
URI Parameters
None.
Body Parameters
employee schedules info
Collection of EmployeeScheduleImportItemName | Description | Type | Additional information |
---|---|---|---|
LocationId | integer |
None. |
|
EmployeeCode | string |
None. |
|
EmployeeId | integer |
None. |
|
StartTime | date |
None. |
|
EndTime | date |
None. |
|
StartLunchTime | date |
None. |
|
EndLunchTime | date |
None. |
Request Formats
application/json, text/json
Sample:
[ { "LocationId": 1, "EmployeeCode": "sample string 2", "EmployeeId": 1, "StartTime": "2025-04-03T03:17:21.0177066-04:00", "EndTime": "2025-04-03T03:17:21.0177066-04:00", "StartLunchTime": "2025-04-03T03:17:21.0177066-04:00", "EndLunchTime": "2025-04-03T03:17:21.0177066-04:00" }, { "LocationId": 1, "EmployeeCode": "sample string 2", "EmployeeId": 1, "StartTime": "2025-04-03T03:17:21.0177066-04:00", "EndTime": "2025-04-03T03:17:21.0177066-04:00", "StartLunchTime": "2025-04-03T03:17:21.0177066-04:00", "EndLunchTime": "2025-04-03T03:17:21.0177066-04:00" } ]
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
it returns OK status even if there are errors with importing particular items, check result for details
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |