Using this API you can update the note of an existing resource within a work order in process or in review.
PUT Method
EndPoint
https://app.fracttal.com/api/wo_resources/:id
id = id of the resource to update
This id, can be consulted from the parameter id_wo_resource, within the web service (GET) Query task resources.
Input Parameters
Body
Parameter | Field type | Required | Description |
type | Number | Yes | Type of resource 1: Inventory 2: Inhouse Personnel 3: Service |
note | Text | Yes | Resource Note |
Output parameters
Parameter | Field 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 | Text | Resource id (id that is associated to the spare parts, inhouse personnel or services catalog) |
description | Text | Description of the resource |
source_description | Text | Resource source |
source_code | Text | Resource source code |
type | Number | Type of resource 1: Inventory 2: Inhouse Personnel 3: Service |
type_description | Text | Description of type of resource |
qty | Number | Quantity requested |
unit_cost | Actual | Unit cost |
total_cost | Actual | Total Cost |
qty_delivered | Real | Quantity Delivered |
real_qty_used | Real | Actual amount used |
initial_date | Real | TO start date |
final_date | Real | TO End Date |
code | Text | Resource Code |
units_description | Text | Unit Description |
units_code | Text | Unit code |
id_status_work_order | Number | Work Order Status |
costs_center_description | Text | Cost Center |
date_create | Date | Date the resource was added |
wo_folio | Text | TO ID |
external_source | Text | Description of the external source (For when it is a non-cataloged resource) |
id_movements_details | Text | ID of the movement detail that is associated to this resource (applies only for inventory type resources) |
id_wo_resource | Texto | ID of the resource within the TO |
Output parameters
Example:
Example Request: (PUT)https://app.fracttal.com/api/wo_resources/569900
Body:
{
"type":1,
"note":" Resource note via API "
}
Response
{
"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": " Zepeling Integration Warehouse ",
"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": " Resource note via API ",
"id_movements_details": 961370,
"wo_final_date": null,
"parent_description": "// Universidad de los Andes Clinic / "
},
"total": 1
}