post https://app.fracttal.com/api/work_requests
This EndPoint can be used to create a new work order.
Input parameters
Parameter | Type | Required | Description |
---|---|---|---|
code | Text | Optional | Asset code. |
user_code | Text | Yes | Human resource code of the user who will register the request. |
description | Text | Yes | Title of request. |
observation | Text | Optional | Detailed description of the request. |
date_incident | Text | Yes | Date and time the incident occurred.Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00:00-03'. |
requested_by | Text | Yes | Name of person requesting repair. |
identifier | Text | Optional | Reference |
is_urgent | Text | Yes | Urgent Request? 'true' if urgent and 'false' otherwise. |
types_description | Text | Optional| | Group Description. |
types_1_description | Text | Optional | Description of classification 1. |
types_2_description | Text | Optional | Description of classification 2. |
key_words_descriptions | Text Array | Optional | Descriptions of the keywords in the application. |
Example:
Request: (POST) https://app.fracttal.com/api/work_requests
{
"code":"EQM029",
"user_code":"25814210",
"description":"Solicitud desde API",
"observation":"Observaciones " ,
"date_incident": "2016-12-09T20:00:00-03",
"requested_by":"Fracttal API",
"identifier":"API130",
"is_urgent":"true",
"types_description":"Maquinaria",
"types_1_description":"Temperatura",
"types_2_description":"Clasificación 2",
"key_words_descriptions": ["Mecanica", "Equipo en Contrato"]
}
{
"success": true,
"message": "200",
"data": [
{
"id": 1890,
"id_company": 133,
"id_type": 44,
"id_item": 26161,
"is_urgent": true,
"description": "Solicitud desde API",
"id_account": null,
"date": "2019-09-04T15:06:56.045508+00:00",
"rating": null,
"rating_notes": null,
"observation": "Observaciones ",
"date_incident": "2016-12-09T23:00:00+00:00",
"date_solution": null,
"identifier": "API130",
"requested_by": "Fracttal API",
"geolocation": null,
"date_maintenance": null,
"items_description": null
}
],
"total": 0
}
Test It