API Endpoints
Fracttal →

Create attachment in a WO task

Through this web service, it is possible to insert notes and links in the attachments section of a WO task.

For this service, it is necessary to send the WO id and the code of the asset that has the task. In case there is more than 1 task for the same asset, the web service will insert the note or link in the first task it finds.

Input parameters

ParameterTypeRequiredDescription
item_codeTextYes (Only required when sending the folio and not the id_work_order_task)Code of the asset that has the associated task.
folioTextYes (Only necessary when id_work_order_task is not sent)WO ID. With this value a WO task will be associated with the asset sent.
id_work_order_taskIntegerYes (Only necessary when neither the folio nor the item_code is sent)Id the task. With this value the will be associated to a specific task.
id_work_orders_tasks_form_itemsIntegerNoSubtask ID. If this value is sent, the information will be associated to the attachment of a subtask. If this action is desired, it is mandatory to send the id_work_order_task.
valueTextYesNote or link to insert
typeIntegerYesAttachment type, can be:

ValueDescription
2Link type
3Note type (Default value)

Example:

Request: (POST) https://app.fracttal.com/api/work_orders_tasks_files/

{
"folio":"OTS-181-2019",
"item_code":"AME-001-FTT",
"type":3,
"value":"Nota creada desde el API"
}
{
    "success": true,
    "message": "200",
    "data": {
        "id": 1059,
        "id_company": 133,
        "id_work_order_task": 6586,
        "type": 3,
        "description": null,
        "value": "Nota creada desde el API",
        "creation_date": "2019-09-04T13:52:39.57612+00:00"
    },
    "total": 0
}

Example attached in subtasks:.

Request: (POST) https://app.fracttal.com/api/work_orders_tasks_files/

{
"id_work_order_task":1727,
"id_work_orders_tasks_form_items":3211,
"type":2,
"value":"https://www.fracttal.com"
}
{
    "success": true,
    "message": "200",
    "data": {
        "id": 799,
        "id_company": 69,
        "id_work_order_task": 1727,
        "type": 2,
        "description": null,
        "value": "https://www.fracttal.com",
        "creation_date": "2020-09-18T15:29:21.246815+00:00",
        "size": null
    },
    "total": 0
}

Test It

Language