put https://app.fracttal.com/api/wo_resources/:id
This API can be used to update the note of an existing resource within a work order in process or under review.
id = id of the resource to update.
This id, can be queried from the id_wo_resource parameter, within the (GET) Query task resources web service.
Input parameters
Parameter | Type | Required | Description |
---|---|---|---|
type | Number | Yes | Type of resource: 1: Inventory 2: Human Resource 3: Service |
note | Text | Yes | Resource Note |
Output parameters
Parameter | Type | Description |
---|---|---|
id_work_orders_tasks | Text | id of the task in the work order |
id_resource | Text | Log ID of the associated resource |
id_resource_original | Tex | Resource id (id that is associated with the spare parts, human resources or services catalog) |
description | Text | Description of the resource |
source_description | Text | Source of the resource |
source_code | Text | Resource source code |
type | Number | Type of resource: 1: Inventory 2: Human resources 3: Services |
type_description | Text | Description of the type of resource |
qty | Number | Quantity requested |
unit_cost | Real | Unit cost |
total_cost | Real | Total cost |
qty_delivered | Real | Quantity Delivered |
real_qty_used | Real | Actual quantity used |
initial_date | Real | WO start date |
final_date | Real | WO end date |
code | Text | Resource code |
units_description | Text | Description of the unit |
units_code | Text | Unit code |
id_status_work_order | Number | Work order status |
costs_center_description | Text | Cost center |
date_create | Number | Date on which the resource was added |
wo_folio | Text | WO ID |
external_source | Text | Description of the external source (For when it is a non-catalogued resource) |
id_movements_details | Text | Id of the movement detail that is associated to this resource (applies only to inventory type resources) |
id_wo_resource | Text | Resource ID within the WO |
Example:
Request: (PUT)https://app.fracttal.com/api/wo_resources/569900
{
"type":1,
"note":"Nota del recurso mediante API"
}
{
"success": true,
"message": "200",
"data": {
"id": "[569900,1]",
"id_work_orders_tasks": 3176750,
"id_resource": 632896,
"id_resource_original": 400,
"description": "CAMERA HEAD ASSY FUJIFILM 10A10003280 { 10A10003280- }",
"id_source": 7,
"source_description": "Almacen Integración Zepeling",
"source_code": "000010",
"id_company": 69,
"id_task": 898004,
"type": 1,
"type_description": "INVENTORY",
"qty": 2,
"unit_cost": 0,
"total_cost": 0,
"qty_delivered": 2,
"real_qty_used": 2,
"initial_date": null,
"final_date": null,
"code": "10A10003280-",
"units_description": "CU",
"is_offline": null,
"id_status_work_order": 1,
"id_work_order": 1440469,
"id_account_offline": null,
"costs_center_description": "",
"date_create": "2021-08-27T20:49:03.524678+00:00",
"units_code": "CU",
"wo_folio": "OT-1733",
"external_source": null,
"note": "Nota del recurso mediante API",
"id_movements_details": 961370,
"wo_final_date": null,
"parent_description": "// Clínica Universidad de los Andes/ "
},
"total": 1
}
Test It