Most of API v1 endpoints have an equivalent in API v2.
Technical changes
-
Better Open API support: the new endpoints have operationId property defined, which allows API client generators to produce more readable code.
-
Pagination changes: for better performance, instead of skip and take parameters, a single
continuationTokenparameter is used. An API response includes a continuation token that allows making a subsequent request to get the next page of data.
Table 1. Absences
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/absences/leave-types |
|
|
GET |
/v2/absences/holidays |
|
|
GET |
/v2/employees/{employeeId}/absences |
|
|
GET |
/v2/employees/{employeeId}/vacation-balance |
|
|
GET |
/v2/employees/{employeeId}/absences/pending |
|
|
POST |
/v2/employees/absences |
|
|
PUT |
/v2/employees/absences/{absenceId} |
|
|
DELETE |
/v2/employees/absences/{absenceId} |
Breaking changes
-
No API for approving/rejecting an employee
Table 2. Applications
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/applications/list |
|
|
POST |
/v2/applications |
|
|
GET |
/v2/applications/{applicationId}/form-data/{formId} |
|
|
GET |
/v2/applications/form-data/{formId} |
|
|
PUT |
/v2/applications/{applicationId}/form-data/{formId} |
|
|
GET |
/v2/applications/{applicationId}/export-as-json/{jsonExportTemplateId} |
Changes
-
ListApplications- combines previous endpoints:-
GET /v1/{customer}/applications/find-by-date -
GET /v1/{customer}/applications/find-by-name
-
Breaking changes
-
No API for deleting an application
Changes
-
ListCandidates- combines previous endpoints:-
GET /v1/{customer}/candidates/{date} -
GET /v1/{customer}/candidates/find-by-name
-
Breaking changes
-
No API for deleting a candidate
Table 4. Countries
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/countries |
|
|
GET |
/v2/countries/{countryCode} |
Table 5. Currency
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/currencies |
|
|
GET |
/v2/currencies/{currencyCode} |
Table 6. Departments
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/departments |
|
|
PUT |
/v2/departments |
|
|
GET |
/v2/departments/{departmentId} |
|
|
DELETE |
/v2/departments/{departmentId} |
|
|
GET |
/v2/departments/custom-id/{customId} |
Changes
-
No separate endpoint for deleting a department by CustomId
Table 7. Employees
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/employees/list |
|
|
GET |
/v2/employees/{employeeId}/files |
|
|
GET |
/v2/employees/files |
|
|
GET |
/v2/employees/{employeeId}/files |
|
|
GET |
/v2/employees/{employeeId}/files |
|
|
POST |
/v2/employees/{employeeId}/folders |
|
|
GET |
/v2/employees/{employeeId}/form-data/{formId} |
|
|
GET |
/v2/employees/form-data/{formId}/list |
|
|
PUT |
/v2/employees/{employeeId}/form-data/{formId} |
|
|
GET |
/v2/employees/{employeeId}/export-as-json/{jsonExportTemplateId} |
|
|
GET |
/v2/employees/export-as-json/{jsonExportTemplateId} |
Changes
-
ListEmployeeFormData- a new API that allows fetching employee form data in batches (instead of one record at a time). -
ExportEmployeesUsingJsonTemplate- allows reading employees using a JSON Template in batches. -
GetEmployeeFiles- now returns all employee attached files (including agreement files). -
Uploading/downloading files no longer requires base64 encoding/decoding.
Breaking changes
-
No endpoint for creating an employee from form data
-
No endpoint for deleting an employee
Table 8. Exports (Employees / Applications)
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/employees/exports |
|
|
GET |
/v2/applications/exports |
|
|
DELETE |
/v2/employees/exports/{employeeExportItemId} |
|
|
DELETE |
/v2/applications/exports/{applicationExportItemId} |
|
|
GET |
/v2/employees/exports/{employeeExportItemId}/files/{fileId} |
|
|
GET |
/v2/applications/exports/{applicationExportItemId}/files/{fileId} |
Changes
-
There are now separate endpoints for exporting applications and employees.
-
The new endpoints
GetExportedEmployees/GetExportedApplicationsallow reading entities in batches. Previously one call per record had to be made, which significantly multiplied the number of calls / time needed for the export.
Table 9. Forms and Form Data
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/employees/forms |
|
|
GET |
/v2/onboardings/forms |
|
|
GET |
/v2/candidates/forms |
|
|
GET |
/v2/employees/forms/{formId} |
|
|
GET |
/v2/onboardings/forms/{formId} |
|
|
GET |
/v2/candidates/forms/{formId} |
|
|
POST |
/v2/applications/form-data/files/upload |
|
|
POST |
/v2/onboardings/form-data/files/upload |
|
|
POST |
/v2/employees/form-data/files/upload |
Changes
-
Now endpoints are separated per-entity: candidate/application/employee/onboarding
-
New endpoints for reading form data in batches:
ListApplicationFormData/ListEmployeeFormData.
Table 10. Jobs / Job Postings / Talent Pools
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/vacancies/jobs |
|
|
POST |
/v2/onboardings/forms |
|
|
GET |
/v2/vacancies/templates |
|
|
GET |
/v2/vacancies/templates/{templateId} |
|
|
GET |
/v2/vacancies |
|
|
GET |
/v2/vacancies/{vacancyId}/team |
Changes
-
Separate endpoints for creating a “job vacancy” and a “talent pool”.
-
A “Job posting” have been renamed to a “vacancy publishing”.
-
GetVacanciesreplaces previous job postings endpoints.
Table 11. Languages
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
GET |
/v2/languages |
|
|
GET |
/v2/languages/{languageKey} |
Table 12. Locations
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/departments/{departmentId}/locations |
|
|
PUT |
/v2/departments/{departmentId}/locations/{locationId} |
Changes
-
No dedicated location endpoints, where the department is identified via
customId.
Table 14. Onboardings
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/onboardings/list |
|
|
GET |
/v2/onboardings/{onboardingId}/form-data/{formId} |
Breaking changes
-
No endpoints for creating/updating an onboarding.
-
No endpoint for updating an onboarding form data.
Table 16. Users
|
OperationId |
HTTP Method |
Route |
|---|---|---|
|
|
POST |
/v2/users/list |
|
|
POST |
/v2/users |
|
|
GET |
/v2/users/{userId} |
|
|
PUT |
/v2/users/{userId} |
|
|
DELETE |
/v2/users/{userId} |
Changes
-
An endpoint for getting a user by
customIdis replaced with a filter field onListUsersenpoint..