v

latestOpenAPI 3.0.0Proprietary2026-08-09130577659.7 KB
Time Tracking|Absence

Create/Update absences.

This method can be used to create and update absences.

An attempt is made to locate an existing absence based on the selected primary key. If one is found, it will be adjusted. Otherwise, a new absence will be created. If the deleteMissing flag is activated, all records not included in the request will be deleted. If the dryRun option is enabled, no actual changes will occur. It is important to note that absences could affect the employees' time account.

post/employee_absence/upsert

Request body

deleteMissingboolean

Do you want to delete all absences missing from this request?

deleteImportSourcestring

The data source from which the missing absences can be deleted. (Standard is "*API")

dryRunboolean

Simulate the operation. (No records will be created or changed) This Parameter is optional.

Example request

{
  "records": [
    {
      "data": {
        "date": "2015-02-20"
      }
    }
  ]
}

Response

Success Response:

Example response

{
  "createdAbsences": [
    {
      "date": "2015-02-20",
      "updatedAt": "2015-02-20"
    }
  ],
  "updatedAbsences": [
    {
      "date": "2015-02-20",
      "updatedAt": "2015-02-20"
    }
  ],
  "deletedAbsencecs": [
    {
      "date": "2015-02-20",
      "updatedAt": "2015-02-20"
    }
  ]
}