Create or update employee (simplified)
This endpoint is a simplification of Create or update employee (complex). It allows creating or modifying an employee by including only information about the person, their service associations, and their contracts.
PUT /api/v1/businesses/{businessId}/import/simple/employee
A detailed explanation of each field that can make up the request body is provided below.
|
Required fields are marked with (*). Accepted values for |
Request body
| JSON analysis |
|---|
Object person* Contains the personal data of the employee identified by their employeeId. |
Details
|
Object serviceAssociations Contains information about the service associations established for the employee. |
Details
|
Object contracts Contains information about the contracts applied to the employee, in terms of hours worked, labour limitations, etc. |
Details
|
Request example
Once the analysis of the various fields has been completed, an example of the request body is provided:
{
"person": {
"name": "Jane",
"surname": "Santos",
"employeeId": "010203",
"seniority": "2018-03-01"
},
"serviceAssociations": [
{
"ownerProduct": "0001-G",
"product": "0001-G",
"from": "2024-01-01",
"to": null,
"disponibility": [
{
"from": "2026-01-01",
"ranges": [
{
"dayType": "ALL",
"startMinuteDay": 0,
"duration": 1440
}
],
"type": "SHIFT_PATTERN",
"timeFramePatternId": "d01e1e08-b2e4-48d1-aa3c-ec43d74e1507",
"weekStart": 1,
"blockedType": "NON_EXTENSIBLE_TIME"
}
]
}
],
"contracts": [
{
"from": "2026-01-01",
"to": null,
"regularMinutes": 0,
"additionalMinutes": 0,
"regularControlPeriod": "WEEKLY",
"additionalControlPeriod": "WEEKLY",
"calendarDaysOff": false,
"numberOfHolidays": 0,
"numberOfPublicHolidays": 0,
"weeklyDaysInvolved": "MONDAY_SUNDAY",
"personCategory": "AV",
"contractTypeId": "JC40"
}
]
}
Considerations
This request will generate an atomic operation that can be automatically reverted if there are any errors: the error will be displayed in the response of the request.
|
If the employee category ( |