Crear historial de tareas
Crear un historial de tareas. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
/FlowTaskHistoryCrear un historial de tareas. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
Descripción de OpenAPI: Registra una entrada de historial vinculada a una tarea, con el tipo de evento, las etapas de origen y destino, el usuario o agente, la descripción y el payload indicados. El registro documenta un evento; esta operación no mueve la tarea ni ejecuta agentes.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
Esta operación no tiene parámetros de ruta, consulta o encabezado.
Ó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 POST \
--url 'https://api.zild.ai/FlowTaskHistory' \
--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 |
|---|---|---|
200 | Operación completada correctamente. | application/json · FlowTaskHistoryDto |
Respuesta de ejemplo (200):
{
"id": 0,
"flowTaskId": 0,
"eventType": 0,
"fromFlowStageId": 0,
"toFlowStageId": 0,
"userId": 0,
"agentId": 0,
"description": "string",
"payload": "string",
"createdAt": "2026-09-22T18:00:00Z"
}
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