1
Preliminaries
You first need to retrieve the export-configuration identifier.The export-configuration identifier
exportConfigurationId is the second integer URL path parameter
when browsing the graphical interface for Lucca Timesheet export feature. For example, if the UI URL looks
like this when browsing to the export-configuration: https://example.ilucca.net/timmi-timesheet/legacy-settings#/export/1/3/latest,
then the identifier is 3.Then, you may want to retrieve the identifier of the latest successful export, it will
help you track the progress of any new export you’ll then create. This can be achieved through the API:2
Trigger an export
When creating an export, two parameters are required:
- A date-time
endsAt, which indicates that all elements prior to it should be exported. Format isYYYY-MM-DDT00:M00:00(time component must be equal to midnight). - An export-configuration ID
configurationId(cf “preliminaries” above).
3
Track export progress
In order to figure out if the export is complete or not, you can poll the server with the following HTTP request
(you need the
lastExportId and exportConfigurationId retrieved in the “preliminaries” step):4
Retrieve the export content
If the export was successfully created, you may retrieve its content with the following HTTP request: