Skip to main content
POST
/
timmi-absences
/
api
/
public
/
services
/
v1.0
/
leaveEntitlementsReplace
Replace entitlements
curl --request POST \
  --url https://{host}/timmi-absences/api/public/services/v1.0/leaveEntitlementsReplace \
  --header 'Authorization: <authorization>' \
  --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": 123,
  "globalErrors": {},
  "lineErrors": {}
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

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<date-time>

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

Example response

successLinesCount
integer
globalErrors
object
lineErrors
object