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
Below is a detailed explanation of each of the fields that can make up the request body, with some being mandatory for the request to be successful.
|
Mandatory fields are marked with an asterisk (*). |
Request body
Object person* Includes the personal data of the employee identified through their employeeId. |
Details
|
Object serviceAssociations Includes information regarding the service associations established for the employee. |
Details
|
Object contracts Includes information regarding the contracts that apply to the employee, in terms of hours worked, labor restrictions, etc. |
Details
|
Request example
Once the analysis of the various fields has been completed, an example of the request body is provided:
[
{
"person": {
"name": "Brian",
"surname": "Cohen",
"group": "01",
"email": "brian@orquest.com",
"birthday": "1987-12-01",
"employeeId": "021298521",
"seniority": "2021-12-01"
},
"serviceAssociations": [
{
"ownerProduct": "C14",
"product": "C14",
"from": "2024-04-11",
"to": null,
"splitPresence": true,
"unplannable": false,
"disponibility": [
{
"from": "2024-04-11",
"to": null,
"ranges": [
{
"dayType": "ALL",
"startMinuteDay": 600,
"duration": 300
}
]
}
],
"id": "asb1415"
}
],
"contracts": [
{
"from": "2024-04-11",
"to": "2027-04-11",
"regularMinutes": 2400,
"countingDays": "MONDAY_SUNDAY",
"additionalMinutes": 360,
"regularControlPeriod": "WEEKLY",
"additionalControlPeriod": "WEEKLY",
"calendarDaysOff": true,
"numberOfHolidays": 25,
"numberOfPublicHolidays": 7,
"weeklyDaysInvolved": "MONDAY_SUNDAY",
"metadata": {
"full": true,
"days": 215,
"taxProfit": "none"
},
"costPerHour": 200.34,
"personCategory": "DE125",
"id": "321abc654def",
"contractTypeId": "07H"
}
]
}
]
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 ( |