post https://app.fracttal.com/api/personnel
Using this API you can create a human resource.
Input parameters
Parameter | Type | Required | Description |
---|---|---|---|
first_name | Text | Required | Names of human resources |
last_name | Text | Optional | Last name of human resources |
code | Text | Optional | Human Resources Code. |
email | Text | Optional | E-mail address |
active | Text | Optional | Resource enabled. Send true or false |
code_asset_location | Text | Optional | Code of the asset in which the human resource will be located. |
group_1 | Text | Optional | Description of classification 1 |
group_2 | Text | Optional | Description of classification 2 |
address | Text | Optional | Address |
city | Text | Optional | City |
state | Text | Optional | State |
zip_code | Text | Optional | Area code |
country | Text | Optional | Country |
latitude | Text | Optional | Latitude |
longitud | Text | Optional | Longuitude |
telephone | Text | Optional | Phone |
telephone_2 | Text | Optional | Phone 2. |
sms | Text | Optional | Sms |
id_hourly_rate | Integer | Optional | Id of the hourly rate (Do not send if description_hourly_rate field is sent) |
description_hourly_rate | Text | Optional | Ordinary time description (Do not send if id_hourly_rate field is sent) |
Output parameters
Parameter | Type | Description |
---|---|---|
success | Boolean | True if the insert was successful or false otherwise |
message | Text | 200 if successful |
data | Text | Json with inserted item |
total | Number | Number of inserted records (always 1) |
Example
Petition: (POST) https://app.fracttal.com/api/personnel
{
"first_name":"Fracttal SPA",
"last_name":"Software de Gestión de activos y mantenimiento",
"code":"fracttal_recurso_humano",
"address":"San Pio X",
"country":"Chile",
"email":"[email protected]",
"active": "true",
"city":"Providencia",
"state": "Region Metropolitana",
"telephone_1":"555-555-55",
"id_hourly_rate":47
}
Test It
Test It