curl --request GET \
--url https://{host}/directory/api/4.0/work-contracts \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 514,
"ownerId": 416,
"startsOn": "2021-01-01",
"endsOn": null,
"isApplicable": true,
"establishmentId": 13,
"spcId": 1,
"typeId": 1,
"hiringTypeId": 3,
"terminationReasonId": null,
"trialPeriodDays": 120,
"renewedTrialPeriodDays": null,
"trialPeriodEndDate": "2021-05-01",
"trialPeriodEndDate2": null,
"authorId": 45,
"lastModifierId": 45,
"createdAt": "2021-11-08T17:48:18.12",
"lastModifiedAt": "2024-01-10T12:27:02.22"
}
],
"count": 1
}Retrieve a paginated collection of work-contracts.
curl --request GET \
--url https://{host}/directory/api/4.0/work-contracts \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 514,
"ownerId": 416,
"startsOn": "2021-01-01",
"endsOn": null,
"isApplicable": true,
"establishmentId": 13,
"spcId": 1,
"typeId": 1,
"hiringTypeId": 3,
"terminationReasonId": null,
"trialPeriodDays": 120,
"renewedTrialPeriodDays": null,
"trialPeriodEndDate": "2021-05-01",
"trialPeriodEndDate2": null,
"authorId": 45,
"lastModifierId": 45,
"createdAt": "2021-11-08T17:48:18.12",
"lastModifiedAt": "2024-01-10T12:27:02.22"
}
],
"count": 1
}API key. Value must be formatted like so: lucca application={api_key}.
Index of the page to retrieve. Starts at 1.
x >= 1Page size (i.e. number of items per page).
0 <= x <= 1000Retrieve the total number of items across all pages.
"count"Only return work-contracts whose employees' ID match one of the given.
x >= 1Only return work-contracts that are considered applicable (true) or not (false). When omitted, both are returned.
Only return archived (true) work-contracts or active (false) ones.
Only return work-contracts which reference one of the given work-contract types IDs.
x >= 1Only return work-contracts which belong to one of the given establishments IDs.
x >= 1Was this page helpful?