Through this API you can update an existing inhouse personnel in Fracttal. To perform this update the inhouse personnel must have the code field filled up.

EndPoint
https://app.fracttal.com/api/personnel/:code
Method PUT

Input Parameter in the Body

Parameter

Type of field

Required

Description

first_name

Text

Yes

inhouse personnel names

last_name

Text

Optional

Surname of the inhouse personnel

email

Text

Optional

Email

active

Text

Optional

Resource enabled. Send true or false

code_asset_location

Text

Optional

Asset code in which the inhouse personnel will be localized.

group_1

Text

Optional

Classification description 1

group_2

Text

Optional

Classification description 2

address

Text

Optional

Direction

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

Length.

telephone

Text

Optional

Telephone.

telephone_2

Text

Optional

Telephone 2.

sms

Text

Optional

SMS.

id_hourly_rate

Entire

Optional

Ordinary hour id (should not be sent if the description_hourly_rate field is sent)

description_hourly_rate

Text

Optional

Ordinary hour description (Should not be sent if the id_hourly_rate field is sent)

Output parameter

Parameter

Type of field

Description

success

Boolean

true if the update was successful or false otherwise

message

Text

200 if it was successful

data

Text

Json with updated inhouse personnel

Example:
Petition: (PUT) https://app.fracttal.com/api/personnel/fracttal_recurso_humano

Body

{ 
"address":"Holanda 2378",
"email":"[email protected]",
"zip_code":"7500000",
"id_hourly_rate":47
}

Example Response:

{ 
"success": true,
"message": "200",
"data": {
"id": 6073,
"id_company": 133,
"id_asset_location": null,
"id_account": null,
"code": "fttl_RH",
"first_name": "Fracttal SPA",
"last_name": "Software de Gestión de activos y mantenimiento",
"email": "[email protected]",
"active": true,
"address": "Holanda 2378",
"city": "Providencia",
"state": "Region Metropolitana",
"zip_code": "7500000",
"country": "Chile",
"latitude": null,
"longitud": null,
"telephone": null,
"telephone_2": null,
"sms": null,
"id_group_2": null,
"id_group_1": null,
"id_hourly_rate": 47,
"asset_location_description": "// ",
"hourly_rates_description": "ASISTENTE DE MECANICO",
"groups_1_description": null,
"groups_2_description": null,
"id_work_shift": null,
"description_work_shifts": null,
"full_name": "Fracttal SPA Software de Gestión de activos y mantenimiento"
},
"total": 0
}

Did this answer your question?