Saltar al contenido principal
GET
/
sectors
/
history

Endpoint

GET https://gateway.orkeia.ai/sectors/history Autenticación
Requiere el encabezado authorization: <tu_token>.

Ejemplo (cURL)

curl -X GET "https://gateway.orkeia.ai/sectors/history" \
  -H "authorization:  <tu_token>"

Respuestas

Response - Success

response
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "sectorId": "SECTOR_12345",
      "responsible": "[email protected]",
      "action": "created sector",
      "type": "success",
      "date": "2024-07-22T14:25:18.000Z"
    }
  ]
}

500 — Error del Servidor

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Error del Cliente

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}

Campos del Historial

NombreTipoDescripción
idstringIdentificador único del evento de historial.
sectorIdstringIdentificador del sector asociado al evento.
responsiblestringNombre/usuario responsable por la modificación.
actionstringAcción registrada (ej.: created sector, updated sector, deleted sector)
typestringClasificación del evento (success, fail, neutral).
dateDateFecha y hora de la modificación.