POST
/
timmi-absences
/
api
/
public
/
services
/
v1.0
/
leaveEntitlementsReplace
curl --request POST \
  --url https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/timmi-absences/api/public/services/v1.0/leaveEntitlementsReplace \
  --header 'Content-Type: multipart/form-data' \
  --form 'File=<string>' \
  --form 'Description=<string>' \
  --form ReferenceDate=2023-11-07T05:31:56Z \
  --form 'EntryTypes=AutoAccruals,ManualAccruals,Regularizations'
{
  "successLinesCount": 0,
  "globalErrors": {
    "columnsFormatNotSupported": "The file must have columns 'login, lastName, firstName' or 'code, employeeNumber, lastName, firstName'."
  },
  "lineErrors": {
    "7": {
      "loginNotFound": "User login not found"
    },
    "8": {
      "duplicatedLine": "Line 8 is identical to line 23"
    },
    "9": {
      "lastLameNotMatchingLogin": "Lastname does not match to the login of this employee",
      "accountNotAvailableForUser": "The user does not have access to the account 6"
    }
  }
}

Query Parameters

strict
boolean
default:
false

In strict mode, if the import has errors, nothing is imported. Without strict mode, the lines in error are ignored and those in success are imported.

simulate
boolean
default:
false

Allows you to simulate the import. In this case, the response indicates the theoretical result of the import without any data being recorded.

Body

multipart/form-data
File
string
Description
string

Description of the entries generated by the import (visible to users in the account details).

ReferenceDate
string

Reference date (text mode). Respect the format: yyyy-MM-ddThh: mm: ss

EntryTypes
string
default:
AutoAccruals,ManualAccruals,Regularizations

Types of entries to take into account, separated by commas, from the following list: AutoAccruals, ManualAccruals, Regularisations, EntitlementsImport, Seniority, Fractionnement, TimeSavings, Comp

By default: AutoAccruals, ManualAccruals, Regularizations which correspond to the main cases of acquisition (automatic acquisition, manual adjustments, regularisations).

Response

200
application/json
Example response
successLinesCount
integer
globalErrors
object
lineErrors
object

Was this page helpful?