Add aptitudes
This endpoint allows to register a list of aptitudes for an employee.
POST /api/v1/import/aptitudes
Below is an explanation of each field in the request body.
|
All fields in this request are mandatory, hence they are marked with an asterisk (*). |
Request body
| JSON Analysis |
|---|
Details
|
Request example
Once the fields have been analyzed, below is an example of the request:
POST /api/v1/import/aptitudes
{
"business": "BUSINESSID",
"employeeId": "EMPLOYEEID",
"aptitudes": [
{
"productId": "0001-G",
"aptitudes": [
{
"locationId": "02",
"level": 3,
"excludedZones": ["Z1"]
}
]
}
]
}
If the data is correct, the request will return a 200 OK status and all the employee’s aptitudes for the specified product will be replaced by those in the request.
Considerations
If the employee ID does not match any employee in the business, the request will return a 404 Not Found error, indicating Employee not found.
If duplicate aptitudes are included in the creation, the request will return a 409 Conflict error, indicating could not execute statement […].
Defined values for level are 0, 1, 2 and 3.
If decimal values are sent, they will be truncated to their integer number.
The same level of competence will be set for all zones of the product that have the task enabled, unless a zone is included in the excludedZones field. Excluded zones will be set to level 0.
|
If the employee has aptitudes defined for other products, those will remain unaltered. |