For importing new time trackings that represent performed work hours in a unit of a restaurant. The time trackings are imported as an array of TimeTracking objects. Each time tracking object has it's employee number and unit UUID and the import will update the time tracking of the clerk(s) in Restolution that are linked to the employee for the given unit. If any part of the imported time tracking (A) already exists for the clerk and unit in a previously stored time tracking (B), this part will be omitted,
i.e. theunion (A ∪ B) of the existing and the new time tracking period will be stored in Restolution.
If several Restolution clients share the same API Key, the time tracking import will affect all clients that have matching employee numbers and unit UUIDs. Note, however, that since the unit UUID is globally unique it is not possible for a single time tracking object to be imported to more than one unit (and client).
parameters:
`timeTrackings - array of TimeTracking objects
response:
A "savedTimeTrackings" object that contains the following fields:
importTimeTrackings
For importing new time trackings that represent performed work hours in a unit of a restaurant. The time trackings are imported as an array of TimeTracking objects. Each time tracking object has it's employee number and unit UUID and the import will update the time tracking of the clerk(s) in Restolution that are linked to the employee for the given unit. If any part of the imported time tracking (A) already exists for the clerk and unit in a previously stored time tracking (B), this part will be omitted, i.e. the union (A ∪ B) of the existing and the new time tracking period will be stored in Restolution. If several Restolution clients share the same API Key, the time tracking import will affect all clients that have matching employee numbers and unit UUIDs. Note, however, that since the unit UUID is globally unique it is not possible for a single time tracking object to be imported to more than one unit (and client).
parameters:
`timeTrackings
- array of TimeTracking objectsresponse:
A "savedTimeTrackings" object that contains the following fields:
timeTrackings
- nr of time trackings in requestadded
- nr of new time trackings addedclients
- nr of clients affectedsample request:
sample response:
TimeTracking
See also importTimeTrackings
employeeNumber
- employee ID of the employee that this time tracking was recorded forunitUUID
- UUID of the Restautant unit where the time tracking was recordedstartTime
- timestamp when the time tracking period startedendTime
- timestamp when the time tracking period endedcomment
- optional comment for the time tracking