Post a time log event

Use this endpoint to post a new time log event. If there are no conflicts or other problems this will also update the associated time entry based on the action (or create a new one in case of the startUnscheduledShift action). Note that successfully creating the time log action does not necessarily mean that the corresponding action has been applied. You can check the event status and, if applicable, the rejection reason on the response object.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
date-time
required

The date and time at which the action happened, in ISO 8601 format. Important: if no time zone info is provided, the time will be interpreted as UTC.

enum
required

Various actions available for time logging. Options are:

  • startShift: Start a planned shift
  • endShift: End a (previously started) shift
  • startBreak: Start a break
  • endBreak: End a (previously started) break- eatBreakfast: Book a meal (breakfast)- eatLunch: Book a meal (lunch)- eatDinner: Book a meal (dinner)
Allowed:
uuid

The ID of the time entry this action should apply to. If not provided, Pentacode will try to determine the appropriate shift automatically.

integer
required

The employee id to start a shift for. Only required if no timeEntryId is provided.

[0-9]{1,9}

The employees staff number, which can be used as a replacement for the employeeId if the latter is not known.

integer

The position id to start a shift for. Only required if no timeEntryId is provided.

string
required

The time logging device this event was sent from.

location
object

The geographic location where the event occurred.

string

An picture of the person at the moment of triggering the event. May be used to verify that the person was physically present.

string

An optional comment by the employee.

meals
object
Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json