Actualizar el historial de tareas
Actualizar el historial de tareas. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
PUT
/FlowTaskHistory/{id}Actualizar el historial de tareas. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
Descripción de OpenAPI: Actualiza los datos del registro de historial de tareas identificado por id con el cuerpo de la solicitud. Devuelve 204 sin contenido.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
| Nombre | Zona | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|---|
id | path | integer · int32 | Sí | Identificador del registro de historial de tareas. | — |
Órgano solicitante
Tipo de contenido: application/json · Schema: FlowTaskHistoryDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
flowTaskId | integer · int32 | No | — | — |
eventType | FlowTaskHistoryEventType | No | — | — |
fromFlowStageId | integer · int32 | No | — | nullable |
toFlowStageId | integer · int32 | No | — | nullable |
userId | integer · int32 | No | — | nullable |
agentId | integer · int32 | No | — | nullable |
description | string | No | — | nullable |
payload | string | No | — | nullable |
createdAt | string · date-time | No | — | nullable |
Ejemplo de solicitud
curl --request PUT \
--url 'https://api.zild.ai/FlowTaskHistory/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"flowTaskId": 0,
"eventType": 0,
"fromFlowStageId": 0,
"toFlowStageId": 0,
"userId": 0,
"agentId": 0,
"description": "string",
"payload": "string",
"createdAt": "2026-09-22T18:00:00Z"
}'
Respuestas
| Estado | Descripción | Cuerpo de respuesta |
|---|---|---|
204 | Operación completada, sin contenido. | No se define ningún organismo de respuesta. |
Modelos de datos
FlowTaskHistoryDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
flowTaskId | integer · int32 | No | — | — |
eventType | FlowTaskHistoryEventType | No | — | — |
fromFlowStageId | integer · int32 | No | — | nullable |
toFlowStageId | integer · int32 | No | — | nullable |
userId | integer · int32 | No | — | nullable |
agentId | integer · int32 | No | — | nullable |
description | string | No | — | nullable |
payload | string | No | — | nullable |
createdAt | string · date-time | No | — | nullable |
FlowTaskHistoryEventType
0 = Created; 1 = StageChanged; 2 = Assigned; 3 = Completed; 4 = Rejected; 5 = Reopened; 6 = Commented; 7 = ExecutedByAgent; 8 = EscalatedToHuman; 9 = ExecutionFailed
integer