Personnel Data
    Personnel Data
    • /company/attendances
      GET
    • /company/attendances
      POST
    • /company/attendances/{id}
      DELETE
    • /company/attendances/{id}
      PATCH
    • /company/employees
      GET
    • Create an employee
      POST
    • /company/employees/{employee_id}
      GET
    • /company/employees/{employee_id}/profile-picture/{width}
      GET
    • /company/time-off-types
      GET
    • /company/time-offs
      GET
    • /company/time-offs
      POST
    • /company/time-offs/{id}
      DELETE
    • /company/time-offs/{id}
      GET
    • Schemas
      • Schemas
        • AbsenceEntitlement
        • AbsencePeriodResponse
        • List All Absence Periods response
        • List All Absence Periods response
        • List All Attenance Periods response
        • List All Attenance Periods response
        • Attribute
        • CostCenters
        • Create time-off periods
        • Create time-off periods
        • Time period when an employee is not available.
        • Time period when an employee is not available.
        • Department
        • Default error response
        • Default error response
        • Employee
        • Employee
        • Employee
        • List of Employees
        • List of Employees
        • Default error response
        • Default error response
        • HolidayCalendar
        • Create a New Attendance Period request
        • Create a New Attendance Period request
        • NewAttendancePeriodResponse
        • Office
        • Default response object
        • Default response object
        • Supervisor
        • Type of time-off resource
        • Type of time-off resource
        • Update an existing attendance period
        • Update an existing attendance period
        • WorkSchedule

      /company/attendances

      POST
      /company/attendances
      This endpoint is responsible for adding attendance data for the company employees. It is possible to add attendances for one or many employees at the same time. The payload sent on the request should be a list of attendance periods, in the form of an array containing attendance period objects.

      Request

      Body Params application/json

      Examples

      Responses

      🟢200The attendance periods were created successfully
      application/json
      Body

      🟠400Invalid request
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.personio.de/v1/company/attendances' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "attendances": [
              {
                  "break": 120,
                  "comment": {
                      "$ref": "#/components/schemas/UpdateAttendancePeriodRequest/example/comment"
                  },
                  "date": "2017-01-18T00:00:00.000Z",
                  "employee": 1234,
                  "end_time": 1080,
                  "start_time": "08:00"
              },
              {
                  "break": 35,
                  "comment": "I was productive as hell",
                  "date": "2017-01-17T00:00:00.000Z",
                  "employee": 1235,
                  "end_time": 720,
                  "start_time": "09:00"
              }
          ]
      }'
      Response Response Example
      200 - response
      {
          "data": {
              "id": [
                  1,
                  2
              ],
              "message": "success"
          },
          "success": true
      }
      Modified at 2023-08-22 06:28:03
      Previous
      /company/attendances
      Next
      /company/attendances/{id}
      Built with