Employees Directory
Create a work-contract
Create a new work-contract.
There are two possible scenarios:
- The user/employee already exists: in this case, you may first have to set an end date to the previous contract.
- The user does not already exist:
- recommended
POST /api/v3/users?contract=true: this will create the user and his contract. You may then need to PATCH the contract that was thus created in order to set additional data. POST /api/v3/users?contract=false: this will create the user without a contract. It will therefore be essential to create your contract via a POST on the contracts API.
- recommended
POST
Create a work-contract
Headers
Body
application/json
Response
OK
Readonly. Whether this work-contract applies to the employee at this very moment.
A work-contract is considered "applicable" if:
- It is the ongoing work-contract as of today;
- If there is none, then it is the first upcoming work-contract;
- If not, then it is the last work-contract this employee had.