put https://app.fracttal.com/api/personnel
Through this API you can update an existing human resource in Fracttal. To perform this update the human resource must have the code field filled in.
Input parameters
Parameter | Type | Required | Description |
---|---|---|---|
first_name | Text | Required | Names of human resources |
last_name | Text | Optional | Last name of human resources |
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 |
Example
Petition: (PUT) https://app.fracttal.com/api/personnel/fracttal_recurso_humano
{
"address":"Holanda 2378",
"email":"[email protected]",
"zip_code":"7500000",
"id_hourly_rate":47
}
Test It
Test It