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
Headers
API key. Value must be formatted like so: lucca application={api_key}
.
Body
application/json
Response
200
application/json
OK
The response is of type object
.