Using this EndPoint you can create a new work request.

EndPoint (POST) https://app.fracttal.com/api/work_requests

Parameters Input in the Body

Parameter

Field type

Required

Description

code

Text

Optional

Code of the asset.

user_code

Text

Yes

Code of the user who will register the request.

description

Text

Yes

Title of the 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

email_requested_by

Text

Optional

Email of the person requesting the 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 the classification 2.

key_words_descriptions

Text Array

Optional

Descriptions of the keywords that the request has.

Example:

Example Request: https://app.fracttal.com/api/work_requests

Body:

{ 
"code":"EQM029",
"user_code":"25814210",
"description":" Request from API ",
"observation":" Remarks " ,
"date_incident": "2016-12-09T20:00:00-03",
"requested_by":"Fracttal API",
"identifier":"API130",
"is_urgent":"true",
"types_description":" Machinery ",
"types_1_description":"Temperature",
"types_2_description":" Classification 2",
"key_words_descriptions": ["Mecanica", "Contract Equipment "],
"email_requested_by": "[email protected]"
}

Example Response:

{ 
"success": true,
"message": "200",
"data": [
{
"id": 1890,
"id_company": 133,
"id_type": 44,
"id_item": 26161,
"is_urgent": true,
"description": " Request from API ",
"id_account": null,
"date": "2019-09-04T15:06:56.045508+00:00",
"rating": null,
"rating_notes": null,
"observation": " Remarks ",
"date_incident": "2016-12-09T23:00:00+00:00",
"date_solution": null,
"identifier": "API130",
"requested_by": "Fracttal API",
"geolocation": null,
"date_maintenance": null,
"email_requested_by": "[email protected]",
"items_description": null
}
],
"total": 0
}

Did this answer your question?