put https://app.fracttal.com/api/tasks_todo_reschedule/
This API allows you to reschedule pending tasks. This web service allows you to set the scheduled date.
Body Parameters
The following information must be sent in the body of the request.
Parameter | Type | Required | Description |
---|---|---|---|
id_task | Integer | Required | Task ID. You can find it here (id_task field) |
id_item | Integer | Required | Asset ID. You can find it here (id field) |
date_maintenance | Text | Required | Date to reschedule the task. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example: '2016-07-12T20:00:00-03'. The date is validated as greater than the current date |
notes | Text | Required | Note indicating the reason why the task is going to be rescheduled |
reschedule_cause | Text | Required | Task rescheduling cause. The reason entered must be previously created in the task rescheduling cause master. |
account_code | Text | Required | Code of the human resource or third party with a user account in Fracttal, which will be registered as the person who modifies the task |
Parámetros de salida
Parámetro | Tipo | Descripción |
---|---|---|
id_task | Integer | Task ID |
id_item | Integer | Asset ID |
date_maintenance | Text | Calculated date |
Example:
Request: (PUT)https://app.fracttal.com/api/tasks_todo_reschedule
{
"id_task": 5338075,
"id_item": 1,
"date_maintenance": "2023-05-26T22:12:07-05",
"notes": "Mucha lluvia",
"reschedule_cause":"Intensas Lluvias",
"account_code": "J46541521"
}
{
"success": true,
"message": "200",
"data": {
"id_item": 1,
"id_task": 5338075,
"date_maintenance": "2023-05-27T03:12:07+00:00"
},
"total": 1
}